Kernels galore and no NVIDIA driver in sight

Colin Watson cjwatson at ubuntu.com
Thu Dec 26 13:15:10 UTC 2024


On Wed, Dec 25, 2024 at 02:52:13AM +0800, Bret Busby wrote:
> On 25/12/24 02:45, Colin Watson wrote:
> > On Wed, Dec 25, 2024 at 02:12:00AM +0800, Bret Busby wrote:
> > > I do not know whether this would suit you, and, other, more knowledgeable
> > > people may be better able to advise on this, but, the sequence of commands
> > > that I recommend, is
> > > 
> > > sudo -i
> > > apt update
> > > apt full-upgrade -y
> > > apt autoremove -y
> > > apt autoclean
> > 
> > This sequence is anti-helpful for what the OP needs, as their situation
> > is that they have many removed-but-not-purged packages, and nothing in
> > your sequence does a purge.
> 
> My understanding is that the apt autoclean command eliminates superseded
> configuration files, which, I understand, was part of the objective.

No, that is not what "apt autoclean" does.  Its documentation refers to
apt-get(8), which says:

       autoclean (and the auto-clean alias since 1.1)
           Like clean, autoclean clears out the local repository of retrieved
           package files. The difference is that it only removes package files
           that can no longer be downloaded, and are largely useless. This
           allows a cache to be maintained over a long period without it
           growing out of control. The configuration option
           APT::Clean-Installed will prevent installed packages from being
           erased if it is set to off.

That's about /var/cache/apt/archives/, not configuration files.

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list