Apt giving error --fix-broken not working

Robert Heller heller at deepsoft.com
Thu Apr 25 20:19:04 UTC 2024


At Thu, 25 Apr 2024 16:04:10 -0400 "Ubuntu user technical support,? not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> 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.
> >
> 
> 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?

No.  Apt update just updates the lists and rebuilds the local package 
database.

Follow the apt update with the apt install command.  *Next time*, 
do apt update *before* apt install or apt upgrade or apt full-upgrade, etc.

Get used to the idea that almost any apt command (eg to install package foo or 
to do a general system update) as a two (maybe three) step process:

apt update
apt install *or* apt upgrade *or* apt full-upgrade
apt autoremove (optional -- usually apt install (or whatever) will mumble 
                about removable packages)


(note: obviously, if you are doing multible apt installs in short seccession, 
you don't have to repeately do apt update and you generally only need to do 
apt update no more then once or twice a week, but it is "harmless" to run it, 
so when in doubt running before apt install is always a good idea.)

> 
> Thanks
> 
> 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
                                                                          




More information about the ubuntu-users mailing list