Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Running apt-get install libboost.*1.40.0 (Ubuntu 10.04.4) works perfectly.

But apt-get autoremove libboost.*1.40.0... not so much. Any workaround?

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libboost-system1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-python1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-signals1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-program-options1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-date-time1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-test1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-iostreams1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-wave1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-graph1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-thread1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-serialization1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-math1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-regex1.40.0 for regex 'libboost.*1.40.0'
Note, selecting libboost-filesystem1.40.0 for regex 'libboost.*1.40.0'
E: Couldn't find package libboost.*1.40.0

Edit: In fact this has nothing to do with autoremove, even remove will do the same

~# apt-get remove libboost-[a-z]*1.40.0
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note , selecting libboost-system1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-python1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-signals1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-test1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-iostreams1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-wave1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-graph1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-thread1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-serialization1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-math1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-regex1.40.0 for regex 'libboost-[a-z]*1.40.0'
Note, selecting libboost-filesystem1.40.0 for regex 'libboost-[a-z]*1.40.0'
E: Couldn't find package libboost-[a-z]*1.40.0
share|improve this question
2  
autoremove doesn't take any options. It automatically removes all packages that were auto installed and are no longer required. –  psusi May 22 '13 at 14:25
1  
@psusi Actually it does. apt-get autoremove foo will remove foo along with any pending packages scheduled for auto removal. –  dobey May 22 '13 at 14:27
1  
@dobey No, according to the manpage one should use it like this: apt-get remove --auto-remove pkg. The commands check, clean, autoclean, autoremove, update, upgrade, dselect-upgrade and dist-upgrade don't take any package as arguments. –  gertvdijk May 22 '13 at 14:31
    
It seems that either the program is wrong, or the man page is. Time to file a bug report. –  psusi May 22 '13 at 14:32
    
Actually, even apt-get remove libboost.*1.40.0 fails with the same error message so it has nothing to do with autoremove. –  Jeff May 22 '13 at 15:16

1 Answer 1

up vote 0 down vote accepted

As a workaround, you can run dpkg -l|grep 'libboost.*1.40.0'|cut -d' ' -f3|xargs sudo apt-get remove --purge to remove them from your system.

share|improve this answer
    
I had to add -qq to the apt-get command because otherwise it would auto-abort (??) but otherwise thanks! –  Jeff May 22 '13 at 17:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.