Ubuntu 22.04 问题,无法安装 libc6-dev...您持有损坏的软件包

Ubuntu 22.04 问题,无法安装 libc6-dev...您持有损坏的软件包

我不知道如何解决以下问题,这严重延迟了我的研究项目的进展:

(base) chaztikov@priority:~/git/modulus$ sudo apt-get install libc6-dev
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:
 libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed
E: Unable to correct problems, you have held broken packages.

编辑 1:感谢您迄今为止的评论,对于以下内容的可读性,我深表歉意

(base) chaztikov@priority:~/git/modulus$ sudo apt install libc6=2.31-0ubuntu9.2 libc-bin=2.31-0ubuntu9.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libc6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libc6:i386 libdb1-compat libnss-nisplus:i386 libnss-nis:i386 libcrypt1:i386
  libnss-nisplus libnss-nis libcrypt1

Package libc-bin is a virtual package provided by:
  libc-bin:i386 2.35-0ubuntu3 (= 2.35-0ubuntu3)
You should explicitly select one to install.

E: Version '2.31-0ubuntu9.2' for 'libc6' was not found
E: Version '2.31-0ubuntu9.2' for 'libc-bin' was not found
(base) chaztikov@priority:~/git/modulus$ sudo apt install libc-bin
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libc-bin is already the newest version (2.35-0ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) chaztikov@priority:~/git/modulus$ sudo apt install libc6=2.31-0ubuntu9.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libc6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libc6:i386 libdb1-compat libnss-nisplus:i386 libnss-nis:i386 libcrypt1:i386
  libnss-nisplus libnss-nis libcrypt1

E: Version '2.31-0ubuntu9.2' for 'libc6' was not found
(base) chaztikov@priority:~/git/modulus$ sudo aptitude install libc6
sudo: aptitude: command not found
(base) chaztikov@priority:~/git/modulus$ sudo apt-get aptitude
E: Invalid operation aptitude

(所以此时我安装了 aptitude-common)

(base) chaztikov@priority:~/git/modulus$ sudo apt install libc6=2.31-0ubuntu9.2
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libc6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libc6:i386 libdb1-compat libnss-nisplus:i386 libnss-nis:i386 libcrypt1:i386
  libnss-nisplus libnss-nis libcrypt1

E: Version '2.31-0ubuntu9.2' for 'libc6' was not found
(base) chaztikov@priority:~/git/modulus$ sudo apt install libc6
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libc6 is already the newest version (2.35-0ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) chaztikov@priority:~/git/modulus$ sudo aptitude install libc6
libc6 is already installed at the requested version (2.35-0ubuntu3.1)
libc6 is already installed at the requested version (2.35-0ubuntu3.1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
                                         
(base) chaztikov@priority:~/git/modulus$ sudo aptitude install libc6-bin
Couldn't find any package whose name or description matched "libc6-bin"
Unable to apply some actions, aborting
(base) chaztikov@priority:~/git/modulus$ sudo aptitude install libc-bin
libc-bin is already installed at the requested version (2.35-0ubuntu3.1)
libc-bin is already installed at the requested version (2.35-0ubuntu3.1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

此时,我不确定我应该做什么,我的直觉是它与虚拟包有关......?

我是否应该尝试使用例如来自 https://pkgs.org/search/?q=libc-binhttps://pkgs.org/search/?q=libc6

相关内容