我不知何故弄乱了库函数。并且存在一个依赖链。 如果我想删除 gcc-13-base.它说
pegasus@pegasus:~$ sudo apt purge gcc-13-base
Reading package lists... Done
Building dependency tree... Done
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:
apt : Depends: gpgv or
gpgv2 but it is not going to be installed or
gpgv1 but it is not going to be installed
Depends: libapt-pkg6.0 (>= 2.6.0) but it is not going to be installed
Depends: libc6 (>= 2.34) but it is not going to be installed
Depends: libgcc-s1 (>= 3.3.1) but it is not going to be installed
Depends: libgnutls30 (>= 3.7.5) but it is not going to be installed
Depends: libseccomp2 (>= 2.4.2) but it is not going to be installed
Depends: libstdc++6 (>= 11) but it is not going to be installed
Depends: libsystemd0 but it is not going to be installed
Recommends: ca-certificates but it is not going to be installed
base-files : PreDepends: awk
Depends: libc6 (>= 2.34) but it is not going to be installed
base-passwd : Depends: libc6 (>= 2.34) but it is not going to be installed
Depends: libdebconfclient0 (>= 0.145) but it is not going to be installed
Depends: libselinux1 (>= 3.1~) but it is not going to be installed
bash : PreDepends: libc6 (>= 2.36) but it is not going to be installed
PreDepends: libtinfo6 (>= 6) but it is not going to be installed
bsdutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libsystemd0 but it is not going to be installed
Recommends: bsdextrautils
coreutils : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
PreDepends: libattr1 (>= 1:2.4.44) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libgmp10 (>= 2:6.2.1+dfsg1) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
dash : PreDepends: libc6 (>= 2.34) but it is not going to be installed
debianutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
diffutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
dpkg : PreDepends: libbz2-1.0 but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: liblzma5 (>= 5.4.0) but it is not going to be installed
PreDepends: libmd0 (>= 0.0.0) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
PreDepends: libzstd1 (>= 1.5.2) but it is not going to be installed
PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
e2fsprogs : PreDepends: libblkid1 (>= 2.36) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libcom-err2 (>= 1.43.9) but it is not going to be installed
PreDepends: libext2fs2 (= 1.47.0-1ubuntu1) but it is not going to be installed
PreDepends: libss2 (>= 1.38) but it is not going to be installed
PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
Depends: logsave
Recommends: e2fsprogs-l10n but it is not going to be installed
fdisk : Depends: libc6 (>= 2.34) but it is not going to be installed
Depends: libfdisk1 (>= 2.38) but it is not going to be installed
Depends: libmount1 (>= 2.24.2) but it is not going to be installed
Depends: libncursesw6 (>= 6) but it is not going to be installed
Depends: libreadline8 (>= 6.0) but it is not going to be installed
Depends: libsmartcols1 (>= 2.28~rc1) but it is not going to be installed
Depends: libtinfo6 (>= 6) but it is not going to be installed
findutils : PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
grep : PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libpcre2-8-0 (>= 10.32) but it is not going to be installed
gzip : PreDepends: libc6 (>= 2.34) but it is not going to be installed
hostname : PreDepends: libc6 (>= 2.34) but it is not going to be installed
init : PreDepends: systemd-sysv
libc-bin : Depends: libc6 (> 2.37) but it is not going to be installed
Depends: libc6 (< 2.38) but it is not going to be installed
libcrypt1 : Depends: libc6 (>= 2.36) but it is not going to be installed
login : PreDepends: libaudit1 (>= 1:2.2.1) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
PreDepends: libpam-runtime but it is not going to be installed
PreDepends: libpam-modules but it is not going to be installed
mount : PreDepends: libblkid1 (>= 2.17.2) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libmount1 (>= 2.38) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
PreDepends: libsmartcols1 (>= 2.33) but it is not going to be installed
ncurses-bin : PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libtinfo6 (>= 6.3) but it is not going to be installed
perl-base : PreDepends: libc6 (>= 2.35) but it is not going to be installed
sed : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
shim-signed : Depends: grub-efi-amd64-signed (>= 1.191~) but it is not going to be installed or
grub-efi-arm64-signed (>= 1.191~) but it is not installable or
base-files (< 12.3)
Depends: grub-efi-amd64-signed (>= 1.187.2~) but it is not going to be installed or
grub-efi-arm64-signed (>= 1.187.2~) but it is not installable
Depends: grub2-common (>= 2.04-1ubuntu24)
Depends: mokutil (>= 0.3.0+1538710437.fb6250f-0ubuntu2) but it is not going to be installed
Depends: sbsigntool but it is not going to be installed
Recommends: secureboot-db but it is not going to be installed
sysvinit-utils : Depends: libc6 (>= 2.34) but it is not going to be installed
tar : PreDepends: libacl1 (>= 2.2.23) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
util-linux : PreDepends: libblkid1 (>= 2.37.2) but it is not going to be installed
PreDepends: libc6 (>= 2.34) but it is not going to be installed
PreDepends: libcap-ng0 (>= 0.7.9) but it is not going to be installed
PreDepends: libmount1 (>= 2.38) but it is not going to be installed
PreDepends: libpam0g (>= 0.99.7.1) but it is not going to be installed
PreDepends: libselinux1 (>= 3.1~) but it is not going to be installed
PreDepends: libsmartcols1 (>= 2.38) but it is not going to be installed
PreDepends: libsystemd0 but it is not going to be installed
PreDepends: libtinfo6 (>= 6) but it is not going to be installed
PreDepends: libudev1 (>= 183) but it is not going to be installed
PreDepends: libuuid1 (>= 2.16) but it is not going to be installed
PreDepends: zlib1g (>= 1:1.1.4) but it is not going to be installed
Depends: util-linux-extra
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
如果我这样做,它会显示:
pegasus@pegasus:~$ sudo dpkg --remove --force-remove-reinstreq gcc-13-base
dpkg: dependency problems prevent removal of gcc-13-base:amd64:
libstdc++6:amd64 depends on gcc-13-base (= 13-20230320-1ubuntu1).
libgomp1:amd64 depends on gcc-13-base (= 13-20230320-1ubuntu1).
libgfortran5:amd64 depends on gcc-13-base (= 13-20230320-1ubuntu1).
libgcc-s1:amd64 depends on gcc-13-base (= 13-20230320-1ubuntu1).
libatomic1:amd64 depends on gcc-13-base (= 13-20230320-1ubuntu1).
dpkg: error processing package gcc-13-base:amd64 (--remove):
dependency problems - not removing
Errors were encountered while processing:
gcc-13-base:amd64
我有点卡住了。如何解决此问题并永久删除 gcc-13-base? 我使用的是 ubuntu 22.10。我最初尝试安装 gcc-multilib 但它显示错误。那么我怎样才能摆脱这个破碎的依赖关系和库的链条呢?资质也失败了
我有类似但更简单的案例:
The following packages have unmet dependencies:
libgcc-s1 : Depends: gcc-13-base (= 13.1.0-8ubuntu1~18.04) but it is not going to be installed
libgcc1 : Depends: gcc-13-base (= 13.1.0-8ubuntu1~18.04) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
how to force remove gcc-13 /usr/ relative dirs
libgcc-s1 和 libgcc1 依赖于 gcc-13-base,我首先
apt remove libgcc1 libgcc-s1
然后 apt remove gcc-13-base