76
Distribuce / Ubuntu focal: nekonzistentní verze libc6 a libc6-dev
« kdy: 28. 04. 2021, 17:34:04 »
Řeším takovou nepěknou věc s Ubuntu 20.0 LTS v LXD kontejneru. Po update keše balíčků odmítá nainstalovat libpcap-dev:
Podle informací na webu má být k dispozici balíček libc6-dev ve verzi 2.31-0ubuntu9.3, tím by se můj problém nejspíš vyřešil. Jenže apt ho nevidí. Co s tím?
Kód: [Vybrat]
$ lxc launch images:ubuntu/focal test
Creating test
Starting test
$ lxc exec test bash
root@test:~# cat /etc/apt/sources.list
# Generated by distrobuilder
deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu focal-security main restricted universe multiverse
root@test:~# apt update
Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [623 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [555 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [947 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [763 kB]
Fetched 3111 kB in 2s (1788 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
root@test:~# apt install libpcap-dev
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:
libpcap-dev : Depends: libpcap0.8-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@test:~# apt install libpcap0.8-dev
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:
libpcap0.8-dev : Depends: libc6-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@test:~# apt install libc6-dev
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:
libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is to be installed
E: Unable to correct problems, you have held broken packages.
root@test:~# apt show libc6
Package: libc6
Version: 2.31-0ubuntu9.3
Status: install ok installed
…
root@test:~# apt show libc6-dev
Package: libc6-dev
Version: 2.31-0ubuntu9.2
Podle informací na webu má být k dispozici balíček libc6-dev ve verzi 2.31-0ubuntu9.3, tím by se můj problém nejspíš vyřešil. Jenže apt ho nevidí. Co s tím?

