[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: No ssh service after upgrade from trixie Sid to forky Sid



On Fri, Sep 12, 2025 at 05:48:22 +0100, mick.crane wrote:
> On 2025-09-11 22:00, Thomas Schmitt wrote:
> > Hi,
> 
> > My usual way to upgrade was
> >   apt-get update
> >   apt-get dist-upgrade
> Without doing that RTFM I don't know what is the difference between
> "upgrade" and "dist-upgrade".
> I had assumed that "upgrade" does the software and "dist-upgrade" does the
> kernel but "upgrade" seems to do the kernel as well.

"apt-get upgrade" will not install any new packages, nor will it remove
any packages, in order to satisfy the dependencies.  The .deb files are
left in place.

"apt-get upgrade --with-new-pkgs" will install new packages if needed,
but will not remove any packages, in order to satisfy dependencies.
The .deb files are left in place.

"apt upgrade" will install new packages if needed, but will not remove
any packages, in order to satisfy dependencies.  Any .deb files downloaded
during this operation will be removed after successful completion.

"apt-get dist-upgrade" will install new packages or remove old packages
if needed to satisfy dependencies.  The .deb files are left in place.

"apt full-upgrade" will install new packages or remove old packages if
needed to satisfy dependencies.  Any .deb files downloaded during this
operation will be removed after successful completion.

"apt dist-upgrade" is a synonym for "apt full-upgrade".

Here's a table:

 Command                         NewPkgs RmvPkgs KeepDebs
 ------------------------------- ------- ------- --------
 apt-get upgrade                                    ✓    
 apt-get upgrade --with-new-pkgs    ✓               ✓    
 apt upgrade                        ✓                    
 apt-get dist-upgrade               ✓      ✓        ✓    
 apt full-upgrade                   ✓      ✓             

"apt upgrade" will "do the kernel" as you put it because the new kernel
is a new *package* (it has a different name, because multiple kernels
must be able to coexist).  "apt-get upgrade" will not, because it doesn't
bring in new packages.


Reply to: