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.

I'm trying to install Wine on Ubuntu Precise. I'm used to using aptitude for package management, so I tried to use that to install Wine. When I do that, I'm told I have to resolve dependencies that end up leaving me with 21 packages being uninstalled! However, when I try to install with apt-get, it appears to work fine.

Screencast (2.3 MB): http://www.stephenwade.me/se/au/12101.ogv

What's going on? Will it work right if I install Wine through apt-get? Will it break aptitude? Why is this happening?

share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

The way I see it is that "aptitude" actually is running something of an equivalent of "apt-get autoremove" before downloading and installing wine. Its trying to remove dependencies first which it thinks is no longer in use but somehow its causing interference with installation of wine.

"apt-get" on the other hand doesn't require this. It'll only remove dependencies which are not in use if you explicitly tell it by running "apt-get autoremove".

"aptitude" no doubt is a bit feature rich than "apt-get", but if you get the desired result through "apt-get", I see no reason not to use it.

And in my opinion, "apt-get" shouldn't break "aptitude".

share|improve this answer
    
Unfortunately, I thought of that too - apt-get autoremove doesn't find anything to get rid of. The thing is that the "conflict" (?) doesn't happen until I ask to install wine. Did you watch the screen recording? –  stephenwade Oct 1 '12 at 16:47
    
what's the problem with installing through "apt-get"? –  linuxandunix Oct 2 '12 at 8:19
    
Nothing except that I was worried it would break aptitude or something. I as much wanted to know why the problem was happening as how to fix it. –  stephenwade Oct 3 '12 at 3:50
    
I tried installing with apt-get and everything's working fine. I'd still love to know what was going on, but the current question is no longer outstanding. –  stephenwade Oct 3 '12 at 3:52
add comment

aptitude remembers which packages were explicitly requested and which were only installed due to dependencies. It will automatically uninstall packages which were not explicitly requested when they are no longer needed.

apt-get treats packages requested explicitly and their dependencies the same.

So better use aptitude, this helps to keep your system clean.

share|improve this answer
    
This doesn't answer the question. I can't install wine using aptitude. Watch the recording. –  stephenwade Oct 1 '12 at 15:18
    
Downvote: Sorry, but this is incorrect, both remember packages installed as dependencies, but apt-get will only remove them when asked to do it. And OP problem is not related to this, aptitude wants to remove 20 packages because a dependency needed by them is absent. –  Javier Rivera Oct 1 '12 at 15:39
add comment

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.