不知何故,我的 Ubuntu 安装无法找到我认为非常常见的软件包......
E: Unable to locate package php5-curl
E: Unable to locate package php5-gd
我知道这与我的来源有关,但是我不确定我需要哪个来源或这些包会包含在哪个来源中。
这些是我运行的命令
sudo apt-get install php5-curl
sudo apt-get install php5-gd
以下是 的内容/etc/apt/sources.list
:
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ dists/oneiric/main/binary-i386/
# deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)]/ oneiric main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu oneiric partner
# deb-src http://archive.canonical.com/ubuntu oneiric partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu oneiric main
# deb-src http://extras.ubuntu.com/ubuntu oneiric main
# deb http://repository.spotify.com stable non-free
答案1
您似乎已删除所有软件源。要重新添加它们,请启动软件中心,然后转到菜单中的编辑 -> 软件源,然后选中 Ubuntu 软件选项卡下的所有框:
然后点击关闭,系统会要求你输入密码,然后为你生成一个新的源文件。你可能不需要勾选源代码框: