我终于自己找到了答案。
要让所有的Ubuntu源自动工作,而无需点击它们,只需在终端中输入。
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
所以只是“宇宙”这个词的话,可以翻译为
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
你可以在软件源中检查,它会显示它现在可以工作了。
你可以手动删除
sudo gedit /etc/apt/sources.list
中的行
http://archive.ubuntu.com/ubuntu lucid main universe restricted multiverse
并保存,在软件源中查看没有被选中的内容。然后执行。
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
让宇宙运转的就是这样。
对于所有启用的人来说,只需这样做。
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
你可以使用不同的链接(看起来是ubuntu转向canonical)也可以添加
partner
软件源。
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner"
$(lsb_release -sc)
可以检查你的Ubuntu版本并将其名称放入链接中。由于10.04被称为lucid
,所以你可以在终端中测试lsb_release -sc
命令,它会返回lucid
这个词。这样就可以在软件源中添加准确的Ubuntu版本的存储库链接。如果词不对,什么都不会起作用。
要了解所有存储库的差异,请阅读https://help.ubuntu.com/community/Repositories/Ubuntu