Apt giving error --fix-broken not working
Jerry Geis
jerry.geis at gmail.com
Fri Apr 26 22:21:59 UTC 2024
On Fri, Apr 26, 2024 at 4:47 PM Keith <keithw at caramail.com> wrote:
> 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
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
I did some command (before this email) that messed everything up - So I
installed 24.04 instead.
THanks all
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240426/64b57309/attachment-0001.html>
More information about the ubuntu-users
mailing list