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.

This cropped up somewhere during the process of installing an nvidia driver (310.32) for my graphic card. Whenever I clicked on the Ubuntu Software Center icon on the launcher, it seemed to work (animation on icon to show that it was starting), and then nothing. So I did the first stupid thing, I tried to remove and reinstall the Software Center; apparently, the remove didn't work properly, so I tried again. Here's the terminal session:

parth@Gladoss:~$ sudo apt-get remove software-center
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  software-center
0 upgraded, 0 newly installed, 1 to remove and 304 not upgraded.
1 not fully installed or removed.
After this operation, 4,485 kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 176079 files and directories currently installed.)
Removing software-center ...
dpkg: error processing software-center (--remove):
 unable to securely remove '/usr/share/app-install/menu.d/featured.menu': Not a directory
No apport report written because MaxReports is reached already
Errors were encountered while processing:
 software-center
E: Sub-process /usr/bin/dpkg returned an error code (1)
parth@Gladoss:~$ 

Let me know how I can properly remove and reinstall the program. Thanks.

EDIT: command sudo apt-get update comes to a stop with error message (terminal)


W: GPG error: ppa.launchpad.net quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F191A5A8844C542


EDIT: Tried the commands: (i)sudo rm /usr/share/app-install/menu.d/featured.menu result : directory does not exist. (ii)sudo rm -rf /usr/share/app-install/menu.d/featured.menu result : nothing. Terminal just gets ready to accept new line. Further, I tried "sudo apt-get install software-center". Same error message as original post.

EDIT: sudo apt-get --reinstall install software-center returns


(Reading database ... 176080 files and directories currently installed.) Preparing to replace software-center 5.4.1.2 (using .../software-center_5.4.1.4_all.deb) ... Unpacking replacement software-center ... dpkg: error processing /var/cache/apt/archives/software-center_5.4.1.4_all.deb (--unpack): trying to overwrite '/usr/share/app-install/desktop', which is also in package app-install-data-partner 12.12.10 Processing triggers for desktop-file-utils ... Processing triggers for bamfdaemon ... Rebuilding /usr/share/applications/bamf.index... Processing triggers for gnome-menus ... Processing triggers for hicolor-icon-theme ... Errors were encountered while processing: /var/cache/apt/archives/software-center_5.4.1.4_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)


EDIT : I figured something was wrong with the dpkg, I googled that. Some commands I tried afterwards.


parth@Gladoss:~$ sudo dpkg --audit The following packages are only half installed, due to problems during installation. The installation can probably be completed by retrying it; the packages can be removed using dselect or dpkg --remove: software-center Utility for browsing, installing, and removing software



parth@Gladoss:~$ sudo dpkg --remove software-center (Reading database ... 176079 files and directories currently installed.) Removing software-center ... dpkg: error processing software-center (--remove): unable to securely remove '/usr/share/app-install/menu.d/featured.menu': Not a directory Errors were encountered while processing: software-center


[In succession]

EDIT : sudo dpkg -L software-center brings up a whole lot of files; including /usr/share/app-install/menu.d/featured.menu If it's being shown here, how is it that a recursive force remove ignores it? Are their any other commands (not related to rm) which might work?

share|improve this question

2 Answers 2

Remove manually

/usr/share/app-install/menu.d/featured.menu

sudo rm /usr/share/app-install/menu.d/featured.menu

Then try and reinstall Software Center

sudo apt-get --reinstall install software-center
share|improve this answer
    
terminal***parth@Gladoss:~$ sudo rm /usr/share/app-install/menu.d/featured.menu rm: cannot remove `/usr/share/app-install/menu.d/featured.menu': Not a directory *** –  user132875 Feb 17 '13 at 13:38
    
Here is the menu.d file's text, if it helps *** [Desktop Entry] X-AppInstall-Package=noiz2sa X-AppInstall-Popcon=11 X-AppInstall-Section=universe Type=Application Name=Noiz2sa Comment=An Abstract Shooter by Kenta Cho Icon=noiz2sa Exec=/usr/games/noiz2sa Terminal=false Categories=Game;ArcadeGame; X-Ubuntu-Gettext-Domain=app-install-data*** –  user132875 Feb 17 '13 at 14:00
    
Try sudo rm -rf instead –  LnxSlck Feb 17 '13 at 14:08
    
Can you please put this information in your question? It's hard to understand what part is broken if you put the information we need in the comments buried down here and out of context! –  Jorge Castro Feb 17 '13 at 14:54
    
Sorry. Question updated. –  user132875 Feb 17 '13 at 15:26

Taken from another thread - (Can I uninstall and reinstall Ubuntu Software Center?)

You've done step one of the top answer, now try the three other steps:

  1. sudo apt-get autoremove software-center
  2. sudo apt-get update
  3. sudo apt-get install software-center

The alternative is in Eliah Kagans answer

  1. sudo apt-get update
  2. sudo apt-get --purge --reinstall install software-center

Hopefully the previous thread can help more with this.

share|improve this answer
    
sorry, I'm getting the same error message. –  user132875 Feb 17 '13 at 13:43
    
Did you try both methods? Including the alternative from Eliah Kagans answer? –  Tim Fothergill Feb 17 '13 at 13:47
    
yes. I'm also getting an error message after the update command. ***W: GPG error: ppa.launchpad.net quantal Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4F191A5A8844C542 *** –  user132875 Feb 17 '13 at 13:51
    
The GPG error is fine, its because you have installed some third party softwares and the system is not able to verify the identity of the authors of the software. Don't worry too much about it, you can probably trust them. –  i08in Feb 17 '13 at 15:31

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.