ubuntu中的软件包更新在vitual box上

ubuntu中的软件包更新在vitual box上,ubuntu,configuration,virtualbox,Ubuntu,Configuration,Virtualbox,在学习其中一个教程时,我需要安装一个curl包。 以下是我的系统配置: Windows 7 64位上的Virtualbox 4.1。 我已经在虚拟机上安装了ubuntu 12.04 当我尝试以下方法时: sudo apt-get install curl 我看到以下错误: [sudo] password for userMe: Reading package lists... Done Building dependency tree Reading state informa

在学习其中一个教程时,我需要安装一个curl包。 以下是我的系统配置:

Windows 7 64位上的Virtualbox 4.1。 我已经在虚拟机上安装了ubuntu 12.04

当我尝试以下方法时:

sudo apt-get install curl
我看到以下错误:

[sudo] password for userMe: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package curl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'curl' has no installation candidate
userMe@userMe-ubuntu:~$ 
当我在笔记本电脑(而不是虚拟机)上直接安装ubuntu时,也没有问题

我想这可能是因为网络设置。请注意,我的工作电脑位于公司网络中,使用自动代理设置(使用.pac文件)访问互联网等

任何帮助都将不胜感激。

好的。。。 这就是我的工作。 看来我的怀疑是对的。。有点

在我的虚拟ubuntu环境中

1. System Settings > Network > Network Proxy 
2. Selected "Method" as "Manual" 
3. Selected the "HTTP Proxy" and provided the server and port.
为了从.PAC文件中找到代理服务器,我使用了来自google的代码

现在我的sudo apt-get-install和其他选项工作正常

希望它能帮助别人

谢谢


Ayusman

属于askubuntu.com(不幸的是,无法投票支持迁移)。在askubuntu上发布了这个问题。谢谢你的否决票。