我使用该add-apt-repository命令添加了许多 PPA 。有没有一种简单的方法可以删除这些 PPA?我已经检查/etc/apt/sources.list了适当的 deb 行,但它们不在那里。
这是在服务器系统上,所以命令行解决方案会很棒!
我通过添加存储库开始设置,然后sudo apt-get update在开始安装其他软件之前再次运行,然后我得到了签名密钥行,然后它就停止了。所以它基本上不会让我现在更新任何包。
d@EliteBook:~/Downloads$ sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease
Get:5 http://ca.archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Hit:6 http://ca.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:7 http://ca.archive.ubuntu.com/ubuntu xenial-backports InRelease
Fetched 247 kB in 0s (256 kB/s)
Reading package lists... Done
W: http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg: Signature by
key 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991 uses weak digest algorithm (SHA1)
d@EliteBook:~/Downloads$
Run Code Online (Sandbox Code Playgroud)
每当我在 Ubuntu 中设置并开始安装东西时,我以前从未见过这种情况。还有什么我可以做的吗?
我的/etc/apt/sources.list包含:
nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$ cat sources.list.old
deb http://archive.ubuntu.com/ubuntu precise universe
nazar_art@nazar-desctop:/etc/apt$ cat source.list
deb http://security.ubuntu.com/ubuntu precise-security main universe
nazar_art@nazar-desctop:/etc/apt$
Run Code Online (Sandbox Code Playgroud)
我根据这篇文章更新了如何恢复默认存储库?
但是当我运行时它调用了另一个问题sudo apt-get update我有一些这样的输出:
Err http://ua.archive.ubuntu.com main/restricted Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/multiverse Sources
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/restricted amd64 Packages
404 Not Found [IP: 91.189.91.13 80]
Err http://ua.archive.ubuntu.com main/universe amd64 Packages …Run Code Online (Sandbox Code Playgroud)