Apt giving error --fix-broken not working
Keith
keithw at caramail.com
Fri Apr 26 20:45:29 UTC 2024
On 4/26/24 2:02 PM, Jerry Geis wrote:
>
>
> You might try
>
> $ sudo apt install --reinstall perl-base
>
> and cross your fingers.
>
> --
> Keith
>
>
> Same thing
>
> apt install --reinstall perl-base
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> You might want to run 'apt --fix-broken install' to correct these.
> The following packages have unmet dependencies:
> libc6-dbg : Depends: libc6 (= 2.38-1ubuntu6.2) but 2.38-1ubuntu6.1 is
> to be installed
> libc6-dev : Depends: libc6 (= 2.38-1ubuntu6.2) but 2.38-1ubuntu6.1 is
> to be installed
> E: Unmet dependencies. Try 'apt --fix-broken install' with no packages
> (or specify a solution).
>
>
$ sudo apt -s install --reinstall perl-base -o apt::get::fix-broken=0
run the above command first with the "-s" (simulate) option. If no
errors, then run for real without the "-s". If successful, run
$ sudo apt install --fix-broken
Alternately,
$ apt download perl-base
$ sudo dpkg -i perl-base
$ sudo apt install --fix-broken
Alternately,
4 dpkg -V perl perl-base perl-modules-5.36
$ apt download perl-base (maybe perl and perl-modules too. Depends on
what the previous command finds.)
$ dpkg-deb -x perl-base_5.36.0-9ubuntu1.1 perl-base
copy whatever files are missing as listed by the dpkg -V command from
the extracted perl-base directory to their proper system directory.
For exmple, the error message indicated that the Cwd.pm module was
missing, so copy it from (assuming the perl-base package was extracted
to ~/perl-base) ~/perl-base/usr/lib/x86_64-linux-gnu/perl-base/Cwd.pm to
/usr/lib/x86_64-linux-gnu/perl-base/
Once your perl installation is sorted, then hopefully apt can fix the
broken libc6 packages.
--
Keith
More information about the ubuntu-users
mailing list