运行命令时sudo apt update
,我遇到了以下让我很困扰的问题:
$ sudo apt update
Hit:1 http://repo.mysql.com/apt/ubuntu eoan InRelease
Hit:2 https://deb.debian.org/debian buster InRelease
Ign:3 http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute InRelease
Hit:4 https://deb.debian.org/debian-security buster/updates InRelease
Hit:5 https://download.sublimetext.com apt/stable/ InRelease
Ign:6 https://storage.googleapis.com/cros-packages/88 buster InRelease
Err:7 http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute Release
404 Not Found [IP: 91.189.95.85 80]
Hit:8 https://storage.googleapis.com/cros-packages/88 buster Release
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/morphis/anbox-support/ubuntu hirsute Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)
当尝试使用时,sudo apt autoremove
我得到以下结果:
$ sudo apt autoremove
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?
Run Code Online (Sandbox Code Playgroud)
小智 5
您需要编辑/etc/apt/sources.list
并删除其中所有无用的存储库。你有两个不同且不兼容的 Ubuntu 版本的线路,Debian buster 与这两个版本都不兼容,而第三方存储库知道是否兼容,我不会检查。该文件是一团糟,永远不会产生一个稳定的系统。第三方源可以位于您的/etc/apt/sources.d/
目录中,即第三方安装源的位置。#
通过在没有行的开头放置 或完全删除文件来注释掉这些文件中的行,然后apt update
让它重新读取并更新包缓存。
归档时间: |
|
查看次数: |
39615 次 |
最近记录: |