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

Re: upgrade to Wheezy fails with aptitude



On 04/04/12 07:25, Andrei POPESCU wrote:
> On Ma, 03 apr 12, 10:40:45, Scott Ferguson wrote:
>> On 03/04/12 08:16, Andrei POPESCU wrote:
>>>
>>> Yes, I only use aptitude from command line for things such as
>>>
>>>     aptitude purge ~o
>>>
>>> which are impossible to achieve with apt-get alone and not easy even if 
>>> you combine it with other tools.
>>
>> # apt-get --purge autoremove
> 
> Definitely not the same thing.

Agreed, having since installed aptitude and tried it.
Perhaps I was thinking of debfoster (more likely just senility).

NOTE: I don't advocate apt over aptitude, it's a personal preference.
I've not seen anything only aptitude can do that I would ever use. I
don't know aptitude well enough to say the reverse (build-dep?)


<snipped>

> 
> I remember deborphan had several modes of operation, but the main one 
> was still the equivalent of apt-get's autoremove.

No, it's (default invocation) is different from autoremove.

# apt-get -s autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  aqbanking-tools dctrl-tools dlocate info2www
  libaqbanking-plugins-libgwenhywfar47 libaqbanking29 libaqbanking29-plugins
  libaqbanking29-plugins-qt libaqhbci17 libaqofxconnect5 libbs2b0
  libdigest-sha1-perl libfile-ncopy-perl libfilesys-diskspace-perl
  libgtkhtml3.14-19 libgwenhywfar47 libmime-types-perl libqbanking8
libx264-116
0 upgraded, 0 newly installed, 19 to remove and 0 not upgraded.

# apt-get -s remove `deborphan`
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer
required:
  libfile-ncopy-perl libmime-types-perl libgwenhywfar47
libaqbanking29-plugins
  libaqofxconnect5 libqbanking8 libaqbanking29
  libaqbanking-plugins-libgwenhywfar47 libmozjs10d dctrl-tools info2www
  libaqhbci17 libfilesys-diskspace-perl aqbanking-tools
libaqbanking29-plugins-qt
  dlocate libdigest-sha1-perl
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  diff libavcore0 libbluedevil1 libbs2b0 libdb4.6 libdb4.6++ libgadu3
  libglib1.2ldbl libgssrpc4 libgtkhtml3.14-19 libkleo4 libkpgp4 libksieve4
  libktnef4 libmeanwhile1 libmediastreamer0 libmessagecore4 libmimelib4
  libmozjs6d libmozjs7d libmsn0.3 libopts25 libotr2 libqalculate5
libscim8c2a
  libtunepimp5 libuu0 libx264-116 xulrunner-10.0 xulrunner-9.0
0 upgraded, 0 newly installed, 30 to remove and 0 not upgraded.


# aptitude purge ~o
The following packages will be REMOVED:
  alien{u} amaya{p} debhelper{u} debian-multimedia-keyring{p}
  google-desktop-linux{p} google-earth-stable{p} google-talkplugin{p}
  handbrake-gtk{p} html2text{u} infokon{p} java-package{p} kernelcheck{p}
  libavcore0{p} libavfilter1{p} libavutil50{p} libbs2b0{p} libdvdcss2{p}
  libelf1{u} libfaac0{p} libglib1.2ldbl{p} libgtk1.2-common{p}
  libid3-3.8.3c2a{u} libmjpegtools-1.9{p} libmkv0{p} libmozjs6d{p}
  libmozjs7d{p} libmozjs9d{p} libqt4-gui{u} libquicktime1{u} librpm1{u}
  librpmbuild1{u} librpmio1{u} libx264-112{p} libx264-118{p}
  linux-headers-3.1.0-1.dmz.2-liquorix-686{p} liquorix-archive-keyring{p}
  liquorix-keyring{p} liquorix-keyrings{p} lsb-core{u} mjpegtools{p}
  nerolinux{p} pax{u} picasa{p} rpm{u} rpm-common{u} rpm2cpio{u} skype{p}
  skype-call-recorder{p} transcode{p} transcode-doc{p} twolame{u}
w32codecs{p}
  xulrunner-9.0{p} zenity{u}
0 packages upgraded, 0 newly installed, 54 to remove and 0 not upgraded.

> 
> To explain, aptitude's ~o pattern stands for "orphaned", that is 
> installed packages that are not available from any of the *currently* 
> configured sources: it may be the package has been dropped from the 
> archive (can happen for unstable and testing, very seldom also for 
> stable) or you removed the corresponding deb line your from 
> sources.list.

A different meaning of orphan (no place/homes, as opposed to
unrequired/unwanted). I'm not sure that I'd ever use the aptitude
de-orphaning tool - it would leave my systems broken whereas deborphan
removes broken packages (and debfoster can remove stranded ones).


> 
> apt-show-versions can be used to generate the package list for apt
> 
> $ apt-show-versions | grep libxmlrpc-ruby
> libxmlrpc-ruby 4.2 installed: No available version in archive
> 
> but you have do some piping first.

# apt-show-versions | grep "No available"
amaya 11.4.4-1 installed: No available version in archive
debian-multimedia-keyring 2010.12.26 installed: No available version in
archive
google-desktop-linux 1.2.0.0088 installed: No available version in archive
google-earth-stable 6.0.3.2197-r0 installed: No available version in archive
google-talkplugin 2.6.1.0-1 installed: No available version in archive
handbrake-gtk 0.9.5-0.1 installed: No available version in archive
infokon 0.2-1 installed: No available version in archive
java-package 0.42 installed: No available version in archive
kernelcheck 1.2.5+bzr20100416-1mlrepo1 installed: No available version
in archive
libavcore0 5:0.6.1+svn20101128-0.2squeeze2 installed: No available
version in archive
libavfilter1 5:0.7.11-0.1 installed: No available version in archive
libavutil50 5:0.7.11-0.1 installed: No available version in archive
libbs2b0 3.1.0-0.2 installed: No available version in archive
libdvdcss2 1.2.10-0.3 installed: No available version in archive
libfaac0 1.28-0.3 installed: No available version in archive
libglib1.2ldbl 1.2.10-19 installed: No available version in archive
libgtk1.2-common 1.2.10-18.1 installed: No available version in archive
libmjpegtools-1.9 1:1.9.0-0.7 installed: No available version in archive
libmkv0 0.6.4.1-0.0 installed: No available version in archive
libmozjs6d 6.0.2-1~bpo60+1 installed: No available version in archive
libmozjs7d 7.0.1-4~bpo60+1 installed: No available version in archive
libmozjs9d 9.0.1-1~bpo60+1 installed: No available version in archive
libx264-112 1:0.svn20110115-0.0 installed: No available version in archive
libx264-118 3:0.118.2085+git8a62835-0.1+1 installed: No available
version in archive
linux-headers-3.1.0-1.dmz.2-liquorix-686 3.1.0-2mcr110+1 installed: No
available version in archive
liquorix-archive-keyring 2009.05.25 installed: No available version in
archive
liquorix-keyring 2009.05.25 installed: No available version in archive
liquorix-keyrings 2009.05.25 installed: No available version in archive
mjpegtools 1:1.9.0-0.7 installed: No available version in archive
nerolinux 4.0.0.0-1 installed: No available version in archive
picasa 3.0.5744-02 installed: No available version in archive
skype 2.2.0.25-1 installed: No available version in archive
skype-call-recorder 0.8 installed: No available version in archive
transcode 3:1.1.5-0.7 installed: No available version in archive
transcode-doc 3:1.1.5-0.7 installed: No available version in archive
w32codecs 1:20110131-0.1 installed: No available version in archive
xulrunner-9.0 9.0.1-1~bpo60+1 installed: No available version in archive


> 
> Hope this explains,


Thanks.
Sort of explains things to me - I'm still lost as to why I'd want to
remove packages for which no repository is currently listed in
/etc/apt/sources.list or /etc/apt/sources.list.d/*.list
Packages that custom packages, packages for which there no longer is a
repository (Google packages, temp custom repos) and packages installed
using repositories enabled only to install that package (eg. Debian
Multimedia).


> Andrei




Kind regards



-- 
Iceweasel/Firefox/Chrome/Chromium/Iceape/IE extensions for finding
answers to questions about Debian:-
https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/


Reply to: