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 can run the Ubuntu Software Center only with sudo software-center in the terminal. When I click on the desktop icon, Ubuntu Software Center opens, and is frozen and shows a dimmed screen, and I have to kill the task in order to close it.

How I can fix the desktop icon?

share|improve this question
    
Can you run software-center (without sudo)? –  cg505 Jun 10 '13 at 1:14
    
probably a permission error, try adding the word "gksudo" before "software-centre" in the desktop shortcut –  Nick Bailuc Jun 10 '13 at 1:28
    
Can you run software-center from terminal without sudo? And if it gives an error when you do that, can you post the error? –  DaboRoss Jun 10 '13 at 17:13

2 Answers 2

The root user has only a few programs under the home folder. Maybe it freezes while loading all of your installed programs. Try waiting a minute or two depending on the speed of your HD. If its your first time successfully running the program under your user name, you may have to wait longer in order for it to sync. Sometimes when I run soft-cen on my netbook it freezes while loading, but then recoveres because I have too many installed programs for such a weak CPU and slow HD.

share|improve this answer
1  
sudo doesn't change the home directory path though? gksudo does but I am pretty sure that sudo doesn't. –  DaboRoss Jun 10 '13 at 2:24
    
@DaboRoss Confirmed; I just ran sudo sh -c "echo $HOME" and it gives my home directory, not /root –  jackweirdy Jun 10 '13 at 12:21
    
your right, i wrote that cuz i used to run a program on gksudo and it saved setting under the root directory –  Nick Bailuc Jun 13 '13 at 21:19

It is likely trying to update the cache or you possibly (but not likely) have a corrupt cache.

Two things you can try to do. 1) wait a while to see if it finishes or 2) open a terminal and run sudo apt-get update to give software-center a head start on updating the cache as it will still need to run a update when opened and it will download icons when opened as well.

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.