Cannot install libc6-dev : Depends: libc6 (= 2.35-0ubuntu3) but 2.35-0ubuntu3.1 is to be installed
Keith
keithw at caramail.com
Mon Mar 13 16:09:27 UTC 2023
On 3/13/23 12:35 AM, Jeffrey Walton wrote:
> On Mon, Mar 13, 2023 at 1:18 AM klu <kludev at gmail.com> wrote:
>>
>> I have met this problem trying to install libc-dev. I have ubuntu
>> 22.04 installed. I have tried apt update/upgrade but still failing. I
>> wonder what other information can help me pinpoint the issue. Thanks!
>>
>> >>> sudo apt install libc-dev
>> Reading package lists... Done
>> Building dependency tree... Done
>> Reading state information... Done
>> Note, selecting 'libc6-dev' instead of 'libc-dev'
>> 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.
>
> That sounds like a Phased Update
> (https://askubuntu.com/questions/1431940/what-are-phased-updates-and-why-does-ubuntu-use-them).
It's not caused by phased updates. Libc6-dev is currently not in the
pipeline for phased updates.
https://termbin.com/xqswo
>
> If you can install the update with `aptitude safe-install`, then it
> was a phased update. If you cannot install it with aptitude, then it
> is a problem with the package.
>
> Unfortunately, there's no way to know the difference without
> attempting to perform the install. (Awful user interface design
> decision).
>
The "-s" option for apt/apt-get will simulate any action (install,
remove, upgrade, etc.) command. You don't even have to use sudo with it.
$ apt -s upgrade ~U
will simulate the install of all packages available for upgrade,
including those currently being phased. No need to install another
packaging tool to do it.
--
Keith
More information about the ubuntu-users
mailing list