我正在尝试做这,但是当我执行sudo apt-get build-dep indicator-sound时,我得到了E: You must put some 'source' URIs in your sources.list。在透明的ubuntu版本中,我没有得到这个错误,只在16.04中。我需要添加哪些源才能下载指示器-声音源?谢谢!
Edit1:
我现在可以执行sudo apt-get build-dep indicator-sound了,但是我得到的只是:
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.看来我什么都没下载。:(
Edit2:这个问题不是这一个的翻版。由于您可以在edit1中阅读,所以我无法下载包含源文件的实际文件夹。
Edit3:我刚刚意识到,我在运行sudo apt-get update时也会遇到这些错误:
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7
W: Target Sources (restricted/source/Sources) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list:7Edit4:我跟踪了这,它成功了。谢谢!
发布于 2016-07-26 14:10:31
若要首先编辑sources.list,您可能需要制作备份副本。
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup然后:
sudo nano /etc/apt/sources.list默认情况下,所有deb-src...行都被注释掉。实际上,您只需要取消对第一个问题的评论。改变这一点:
# deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted对此:
deb-src http://gb.archive.ubuntu.com/ubuntu/ xenial main restricted保存并退出,您将能够运行
sudo apt update && sudo apt build-dep indicator-sound在您的家中(创建一个目录来解压缩源代码是个好主意,因为它们可以解压缩到多个文件,这样就可以将它们放在一起)。
mkdir indicator-sound; cd indicator-sound
apt source indicator-soundhttps://askubuntu.com/questions/803142
复制相似问题