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 tried to installed icaclient (a remote desktop application), and it failed to install for some reason. The problem is that now whenever I try to install a new application with apt-get, I get this message even of the installation succeeded:

Errors were encountered while processing:
 icaclient:i386
E: Sub-process /usr/bin/dpkg returned an error code (1)

Although applications do get installed correctly, but the message is really annoying, and it could potentially hide other errors.

share|improve this question
1  
IMHO icaclient isn't installed properly. If it doesn't break any dependency, try to uninstall it first with aptitude remove icaclient:i386. Also always force yourself to use aptitude instead of apt-get. It's way more "smart". –  Avio May 31 '12 at 19:41
    
@Avio while aptitude may be more smart, it sometimes breaks on multi-arch things, i.e. on amd64, :i386 isnt completely working. I'd recommend for uninstalling to use apt-get, then installing to try to use aptitude, but... it might not work. –  Thomas W. May 31 '12 at 20:03
    
Well that's because you shouldn't mix i386 and amd64 packages as well as you shouldn't mix Ubuntu and Debian packages. aptitude applies stricter dependency rules and sanity checks than apt-get. If you chose to break this rules is ok, but you have to know that you are breaking the rules, it's not aptitude that is dumb :P (Well sometimes, it's really dumb, but fortunately in rare occasions.) –  Avio May 31 '12 at 20:10
    
Look at /var/lib/dpkg/info/icaclient.postinst. If it begins with #!/bin/sh, add set -x as the second line. If it doesn't, post a link to the package so we can see how to see get more verbose messages. Then run sudo apt-get -f install and copy-paste the complete trace. –  Gilles May 31 '12 at 20:32
    
@Avio, I tried your solution (with apt-get instead of aptitude) and it did work! Thanks very much. Maybe you want to post it as an answer so that I mark it as accepted. –  Rafid Jun 1 '12 at 6:05

3 Answers 3

up vote 2 down vote accepted

IMHO icaclient isn't installed properly. If it doesn't break any dependency, try to uninstall it first with aptitude remove icaclient:i386. Also always force yourself to use aptitude instead of apt-get. It's way more "smart".

share|improve this answer

Run apt-get -f install

then

apt-get upgrade

and the try to install a new application.

share|improve this answer
    
It didn't work. –  Rafid May 31 '12 at 19:25
    
@Promather send more output! –  pl1nk May 31 '12 at 19:30
    
There is nothing more to send, I just keep getting the same error. –  Rafid Jun 1 '12 at 6:01
    
@Promather Well I don't think that you had only these 3 lines as an output. –  pl1nk Jun 1 '12 at 12:46
    
True, but the rest are just the normal apt-get information lines, and they are irrelevant. The three lines I mentioned are the only error lines. –  Rafid Jun 1 '12 at 15:04

Have a look at this page

Try this

  1. cd /var/lib/dpkg/info
  2. sudo rm icaclient:i386.*
  3. sudo dpkg --remove --force-remove-reinstreq icaclient:i386
share|improve this answer
1  
I tried @Avio's suggestion in the comment above and it works, so no need to do things manually :-) –  Rafid Jun 1 '12 at 6:06
    
In that case, @Avio post this as an answer so Promather can accept this as the correct one :) –  Samik Jun 1 '12 at 6:58

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.