鉴于 eoan 上的正常安装,我无法安装 sqlite3。发生了什么?
$ apt -u install sqlite3
这会导致以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
sqlite3 : Depends: libsqlite3-0 (= 3.29.0-2) but 3.29.0-2ubuntu0.1 is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
问题是我没有所有需要的 eoan 存储库:
编辑 /etc/apt/sources.list:
$ sudo vim /etc/apt/sources.list
然后在最后添加以下几行:
deb http://archive.canonical.com/ubuntu eoan partner
deb http://security.ubuntu.com/ubuntu eoan-security main restricted
保存并退出。然后升级:
$ sudo apt update
$ sudo apt -u dist-upgrade