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 was having some problem with Software center. So tried to reinstall it. But While removing it give me an error.

(Reading database ... 150986 files and directories currently installed.)
Removing software-center ...
dpkg: error processing software-center (--remove):
 unable to securely remove '/usr/share/app-install/desktop/software-center.menu': Not a directory
Processing triggers for man-db ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Errors were encountered while processing:
 software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)

Now The same problem is repeating if I use apt-get to install or upgrade my ubuntu. I cant install any software and Software-Center too.. PLZ help

share|improve this question
1  
/usr/share/app-install/desktop/software-center.menu isn't supposed to be a directory, but a file. Try removing it directly: sudo rm /usr/share/app-install/desktop/software-center.menu followed by a reinstallation: sudo apt-get --reinstall install software-center –  Lekensteyn Nov 20 '11 at 13:12
    
Thank. It worked :D –  EnTer Nov 21 '11 at 10:17

1 Answer 1

/usr/share/app-install/desktop/software-center.menu isn't supposed to be a directory, but a file.

Try removing it directly: sudo rm /usr/share/app-install/desktop/software-center.menu

Followed by a reinstallation: sudo apt-get --reinstall install software-center

share|improve this answer

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.