每次我尝试升级时,都会收到此消息。
输入:sudo apt upgrade
输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libllvm15:i386
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
输入:apt-cache policy libllvm15
输出:
libllvm15:
Installed: 1:15.0.2-1
Candidate: 1:15.0.2-1
Version table:
*** 1:15.0.2-1 500
500 http://archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
100 /var/lib/dpkg/status
输入:apt-cache policy libllvm15:i386
输出:
libllvm15:i386:
Installed: 1:15.0.2-1
Candidate: 1:15.0.6-3~ubuntu0.22.10.1
Version table:
1:15.0.6-3~ubuntu0.22.10.1 500
500 http://archive.ubuntu.com/ubuntu kinetic-proposed/main i386 Packages
*** 1:15.0.2-1 500
500 http://archive.ubuntu.com/ubuntu kinetic/main i386 Packages
100 /var/lib/dpkg/status
输入:sudo apt upgrade
输出:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libllvm15:i386
The following packages will be upgraded:
gnome-characters
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Need to get 467 kB of archives.
After this operation, 24,6 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu kinetic-proposed/main amd64 gnome-characters amd64 43.1-0ubuntu1 [467 kB]
Fetched 467 kB in 1s (365 kB/s)
(Reading database ... 273496 files and directories currently installed.)
Preparing to unpack .../gnome-characters_43.1-0ubuntu1_amd64.deb ...
Unpacking gnome-characters (43.1-0ubuntu1) over (43.0-1) ...
Setting up gnome-characters (43.1-0ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu4) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...
Processing triggers for libglib2.0-0:amd64 (2.74.3-0ubuntu1) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
Running kernel seems to be up-to-date.
The processor microcode seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
输入:sudo apt update
输出:
Hit:1 http://archive.ubuntu.com/ubuntu kinetic InRelease
Get:2 http://archive.ubuntu.com/ubuntu kinetic-updates InRelease [109 kB]
Get:3 http://archive.ubuntu.com/ubuntu kinetic-backports InRelease [99,9 kB]
Get:4 http://archive.ubuntu.com/ubuntu kinetic-security InRelease [109 kB]
Get:5 http://archive.ubuntu.com/ubuntu kinetic-proposed InRelease [267 kB]
Get:6 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages [149 kB]
Get:7 http://archive.ubuntu.com/ubuntu kinetic-updates/main i386 Packages [73,4 kB]
Get:8 http://archive.ubuntu.com/ubuntu kinetic-updates/main amd64 DEP-11 Metadata [22,5 kB]
Get:9 http://archive.ubuntu.com/ubuntu kinetic-updates/universe i386 Packages [57,1 kB]
Get:10 http://archive.ubuntu.com/ubuntu kinetic-updates/universe amd64 Packages [79,9 kB]
Get:11 http://archive.ubuntu.com/ubuntu kinetic-updates/universe amd64 DEP-11 Metadata [33,6 kB]
Get:12 http://archive.ubuntu.com/ubuntu kinetic-backports/universe amd64 DEP-11 Metadata [1.120 B]
Get:13 http://archive.ubuntu.com/ubuntu kinetic-security/main amd64 DEP-11 Metadata [5.392 B]
Get:14 http://archive.ubuntu.com/ubuntu kinetic-security/universe amd64 DEP-11 Metadata [1.428 B]
Get:15 http://archive.ubuntu.com/ubuntu kinetic-proposed/universe amd64 Packages [44,5 kB]
Get:16 http://archive.ubuntu.com/ubuntu kinetic-proposed/universe Translation-en [21,0 kB]
Get:17 http://archive.ubuntu.com/ubuntu kinetic-proposed/universe amd64 DEP-11 Metadata [3.424 B]
Get:18 http://archive.ubuntu.com/ubuntu kinetic-proposed/universe amd64 c-n-f Metadata [780 B]
Get:19 http://archive.ubuntu.com/ubuntu kinetic-proposed/main amd64 Packages [114 kB]
Get:20 http://archive.ubuntu.com/ubuntu kinetic-proposed/main Translation-en [32,6 kB]
Get:21 http://archive.ubuntu.com/ubuntu kinetic-proposed/main amd64 DEP-11 Metadata [53,8 kB]
Get:22 http://archive.ubuntu.com/ubuntu kinetic-proposed/main amd64 c-n-f Metadata [1.600 B]
Hit:24 http://repository.spotify.com stable InRelease
Hit:25 https://ppa.launchpadcontent.net/kdenlive/kdenlive-stable/ubuntu kinetic InRelease
Hit:26 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:27 https://ppa.launchpadcontent.net/kicad/kicad-6.0-releases/ubuntu kinetic InRelease
Hit:23 https://build.openvpn.net/debian/openvpn/stable xenial InRelease
Fetched 1.279 kB in 9s (144 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
每次我使用:
sudo apt-get --with-new-pkgs upgrade
我进入了tty
模式,我必须install ubuntu-desktop
再次使用aptitude install
而不是apt install.
答案1
您的apt-cache policy
输出显示您正在从kinetic-proposed
存储库安装软件包。
“-proposed” 存储库仅用于测试。这些存储库中的软件包可能已损坏。它们可能与系统的其余部分不兼容。不建议将它们用于日常使用。它们在 Ubuntu 的常规安装中未启用 - 这是人为更改的。
禁用kinetic-proposed
存储库。
然后运行sudo apt update
,因为你的源刚刚改变。
答案2
我遇到了同样的错误,这是因为 Ubuntu 决定不在默认安装中包含更新源存储库(不要问我为什么,这在 Debian 中可以正常工作)...但无论如何,可以通过添加以下几行轻松解决:
deb http://ec.archive.ubuntu.com/ubuntu/ kinetic-updates main restricted
deb http://ec.archive.ubuntu.com/ubuntu/ kinetic-updates universe
deb http://ec.archive.ubuntu.com/ubuntu/ kinetic-updates multiverse
到 APT 配置中的文件,名称如下/etc/apt/sources.list.d/more-ubuntu-sources.list
您可以将镜像服务器更改为距离您更近的服务器
其他版本也会出现这种情况,因此请确保将 kinetic 更改为你正在使用的发布版本,例如 focal 或 jammy
然后运行apt-get update
,您就可以安装libllvm15
任何新的软件包,例如gnome-builder
,libgtk-3-0-dev
等等。