升级到 22.04 后面临软件包更新问题

升级到 22.04 后面临软件包更新问题

sudo apt update我最近升级到了 22.04,从那时起,我在使用命令和时遇到了问题 sudo apt upgrade。运行后,sudo apt update出现了以下有关 slack 键的错误

Hit:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:5 https://deb.nodesource.com/node_16.x focal InRelease
Hit:6 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:7 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Hit:8 https://downloads.1password.com/linux/debian/amd64 stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: https://packagecloud.io/slacktechnol...sie/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

并且运行时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: 
libapache2-mod-php7.4 libapache2-mod-php8.0
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

命令sudo apt list --upgradable显示如下

Listing... Done
libapache2-mod-php7.4/jammy 8.1.2-1ubuntu2 amd64 [upgradable from: 7.4.29-1+ubuntu20.04.1+deb.sury.org+1]
libapache2-mod-php8.0/jammy 8.1.2-1ubuntu2 amd64 [upgradable from: 8.0.18-1+ubuntu20.04.1+deb.sury.org+1]

我需要升级这两个软件包并修复错误。在有人将其标记为重复之前,无法使用以下任何命令升级保留的软件包 sudo apt -f install <package>sudo apt-get dist-upgrade sudo apt full-upgrade

答案1

安装 gnome-software ,检查 gnome-software 中的更新,它将更新您的所有软件包(在系统启动期间)。

相关内容