linux ubuntu 服务器,无法完成“sudo apt-get install ubuntu-desktop”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9051904/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 04:16:22  来源:igfitidea点击:

linux ubuntu server, can't complete "sudo apt-get install ubuntu-desktop"

linuxubuntuproxyapt-get

提问by user963602

I'va installed ubuntu server 10.41 in Vm ware, and I would like to install the desktop
but each time i try to do the command sudo apt-get install ubuntu-desktop
this error shows up:

我在 Vm ware 中安装了 ubuntu 服务器 10.41,我想安装桌面,
但每次尝试执行命令时都会出现sudo apt-get install ubuntu-desktop
此错误:

Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libp/libproxy/
libproxy0-o.3.1-ubuntu1-amd64.deb 403 Forbidden [Ip:91.189.92.179 80]

E:ubable to fetch some archives,maybe run apt-get update or try with fix --missing?



I tried fix missingcommand but didn't work for the same reason. I tried to cahnge the proxy like this:



我尝试过fix missing命令,但由于同样的原因没有工作。我试图像这样更改代理:

  1. changed the proxy in my host computer. (ultra serf)
  2. changed the proxy settings in my VM to Bridged And Riplicate physical network Connection
    state.
  3. run the command:

    export http-proxy
    http-proxy=http://127.0.0.1:80

    same problem, so mybe i should change the proxy settings in ubuntu but I don't know how


    By the way the missing file that is refusing to be downlaoded is 38.1KBand all other files are perfectly downloaded
    so maybe i can just download it in the host(windows xp) and move to ubuntu
    but i don't know where is the directory for the downloaded package ORwhere can i add this file, can any one help me?

  1. 更改了我的主机中的代理。(超级农奴)
  2. 将我的 VM 中的代理设置更改为 Bridged And Riplicate 物理网络连接
    状态。
  3. 运行命令:

    导出 http-proxy
    http-proxy=http://127.0.0.1:80

    同样的问题,所以我应该更改 ubuntu 中的代理设置,但我不知道如何


    顺便说一下,拒绝下载的丢失文件是38.1KB并且所有其他文件都已完美下载,
    所以也许我可以将它下载到主机(windows xp)并移动到 ubuntu
    但我不知道下载的包的目录在OR哪里我可以在哪里添加此文件,任何人都可以提供帮助我?

采纳答案by cha0site

Edit your /etc/apt/sources.list.

编辑您的/etc/apt/sources.list.

Find lines containing us.archive.ubuntu.com. Replace that with another mirror from the Ubuntu mirror list, say ubuntu.secs.oakland.edu.

查找包含us.archive.ubuntu.com. 将其替换为Ubuntu 镜像列表中的另一个镜像,例如ubuntu.secs.oakland.edu

Good luck!

祝你好运!

Edit:And don't forget to run apt-get update!

编辑:不要忘记运行apt-get update