Apt giving error --fix-broken not working

MR mrzenwiz at gmail.com
Thu Apr 25 19:49:34 UTC 2024


You have to give apt a directive, like install, along with the --fix-broken
option.

Iirc, you also need to specify a package to act on.

HTH

Mark


On Thu, Apr 25, 2024, 12:44 Jerry Geis <jerry.geis at gmail.com> wrote:

> something is messed up on apt.  fix broken does not fix anything -
> how do I fix it.
>
> -----
> 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
> installed
>  libc6-dev : Depends: libc6 (= 2.38-1ubuntu6.2) but 2.38-1ubuntu6.1 is
> installed
> E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or
> specify a solution).
>
>
>
> root at silentm:~# apt --fix-broken install
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> Correcting dependencies... Done
> The following additional packages will be installed:
>   libc6 libc6:i386
> Suggested packages:
>   glibc-doc glibc-doc:i386 locales:i386
> The following packages will be upgraded:
>   libc6 libc6:i386
> 2 upgraded, 0 newly installed, 0 to remove and 33 not upgraded.
> 79 not fully installed or removed.
> Need to get 0 B/6,247 kB of archives.
> After this operation, 2,048 B of additional disk space will be used.
> Do you want to continue? [Y/n] y
> debconf: Perl may be unconfigured (Can't locate Cwd.pm in @INC (you may
> need to install the Cwd module) (@INC contains: /etc/perl
> /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0
> /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36
> /usr/share/perl/5.36 /usr/local/lib/site_perl) at
> /usr/share/perl/5.36/File/Path.pm line 6.
> BEGIN failed--compilation aborted at /usr/share/perl/5.36/File/Path.pm
> line 6.
> Compilation failed in require at (eval 1) line 3.
> BEGIN failed--compilation aborted at (eval 1) line 3.
> ) -- aborting
> (Reading database ... 310846 files and directories currently installed.)
> Preparing to unpack .../libc6_2.38-1ubuntu6.2_amd64.deb ...
> De-configuring libc6:i386 (2.38-1ubuntu6.1), to allow configuration of
> libc6:amd64 (2.38-1ubuntu6.2) ...
> Can't locate POSIX.pm in @INC (you may need to install the POSIX module)
> (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0
> /usr/local/sha
> re/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36
> /usr/share/perl/
> 5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/Template.pm
> line 7.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm
> line 7.
> Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line
> 8.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm
> line 8.
> Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm
> line 7.
> Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
> Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
> Compilation failed in require at /usr/share/debconf/frontend line 6.
> BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
> dpkg: error processing archive
> /var/cache/apt/archives/libc6_2.38-1ubuntu6.2_amd64.deb (--unpack):
>  new libc6:amd64 package pre-installation script subprocess returned error
> exit status 2
> Preparing to unpack .../libc6_2.38-1ubuntu6.2_i386.deb ...
> De-configuring libc6:amd64 (2.38-1ubuntu6.1), to allow configuration of
> libc6:i386 (2.38-1ubuntu6.2) ...
> Can't locate POSIX.pm in @INC (you may need to install the POSIX module)
> (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0
> /usr/local/sha
> re/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5
> /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36
> /usr/share/perl/
> 5.36 /usr/local/lib/site_perl) at /usr/share/perl5/Debconf/Template.pm
> line 7.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm
> line 7.
> Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line
> 8.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm
> line 8.
> Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm
> line 7.
> Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
> Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
> BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
> Compilation failed in require at /usr/share/debconf/frontend line 6.
> BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
> dpkg: error processing archive
> /var/cache/apt/archives/libc6_2.38-1ubuntu6.2_i386.deb (--unpack):
>  new libc6:i386 package pre-installation script subprocess returned error
> exit status 2
> Errors were encountered while processing:
>  /var/cache/apt/archives/libc6_2.38-1ubuntu6.2_amd64.deb
>  /var/cache/apt/archives/libc6_2.38-1ubuntu6.2_i386.deb
> needrestart is being skipped since dpkg has failed
> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>
> What do I do with the above ?
>
> Jerry
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240425/f5e11612/attachment-0001.html>


More information about the ubuntu-users mailing list