Apt giving error --fix-broken not working
Jerry Geis
jerry.geis at gmail.com
Thu Apr 25 20:04:10 UTC 2024
On Thu, Apr 25, 2024 at 3:54 PM Robert Heller <heller at deepsoft.com> wrote:
> Try 'apt update'. Usually what is wrong is your package lists are out of
> date
> or out of sync. apt update generally fixes. The *debian* package is
> "mis-featured" -- the package list DB is sepaately updated from package
> install/update. RHel does things differently -- yum/dnf always does the
> "logical equivalent" of apt update as an integeral part of any install or
> update (1 command does it all). Rule of thumb: before any apt <whatever>,
> do
> an apt update first.
>
> At Thu, 25 Apr 2024 15:41:54 -0400 "Ubuntu user technical support,? not
> for general discussions" <ubuntu-users at lists.ubuntu.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
> >
>
> --
> Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> Deepwoods Software -- Custom Software Services
> http://www.deepsoft.com/ -- Linux Administration Services
> heller at deepsoft.com -- Webhosting Services
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
apt update
Hit:1 http://us.archive.ubuntu.com/ubuntu mantic InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu mantic-updates InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu mantic-backports InRelease
Hit:4 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://security.ubuntu.com/ubuntu mantic-security InRelease
Hit:6 https://linux.teamviewer.com/deb stable InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
35 packages can be upgraded. Run 'apt list --upgradable' to see them.
But it does no update them. The list command does show libc6.
how do I apply them ? I thought apt update would do that?
Thanks
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20240425/8ceb5fbc/attachment.html>
More information about the ubuntu-users
mailing list