Interrupted release upgrade, how to sort out left-over old packages?

Chris Green cl at isbd.net
Wed May 18 15:01:51 UTC 2016


On Wed, May 18, 2016 at 04:39:21PM +0200, Tom H wrote:
> On Wed, May 18, 2016 at 2:25 PM, Chris Green <cl at isbd.net> wrote:
> >
> > I think I know now the cause of my 'left-over' PHP5 packages in a
> > 16.04 installation. (See previous thread)
> >
> > The system in question got interrupted (the cat walked across the
> > keyboard!) while doing a do-release-upgrade. I restarted it and after
> > a couple of 'apt-get update' and an 'apt-get dist-upgrade' it seemed
> > to have sorted itself out and have 16.04 properly installed.
> >
> > However, obviously not all the packages that should have been upgraded
> > were upgraded, hence my left-over PHP5 packages.
> >
> > I've sorted out the PHP5 ones now but I suspect there may be other
> > left-over packages from 15.10 that haven't been updated. Is there any
> > way I can check and update them?
> 
> The simplest would be to install aptitude (if it isn't installed) and run
> 
> ## are installed but are no longer installable
> aptitude search ~o
> 
> ## were installed as dependencies but are no longer required
> aptitude search ~g
> 
> ## are uninstalled but still have configuration files on-disk
> aptitude search ~c
> 
Aptitude is already installed.

Running 'aptitude search ~o' produces the same list that Synaptic does
if you click on 'Local or Obsolete'.  Maybe that's what Nils was
meaning but got the details wrong.

Either way I have managed to get rid of a few remaining 'left-over'
packages.

I assume that packages listed by 'aptitude search ~o' will include
anything installed manually using dpkg.  I have one or two small
utilities installed this way which aren't available by other means
though I avoid it as far as possible.

Thanks all.

-- 
Chris Green




More information about the ubuntu-users mailing list