Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So here's the problem.

I was having a problem with software-center and I thought that a nice little uninstall-reinstall might just solve the problem. After checking that it was fine, I did it. However I am unable to reinstall the software-center.

I had performed two removal commands:

sudo apt-get remove software-center
sudo apt-get autoremove software-center

When trying the update commmand this is what I got:

$ sudo apt-get update
Hit stable Release.gpg
Hit stable Release             
Hit stable/main i386 Packages  
Hit raring Release.gpg
Hit raring Release
Ign stable/main Translation-en
Hit raring/main i386 Packages
Hit raring Release.gpg
Ign raring/main Translation-en
Hit raring Release.gpg
Hit raring Release
Hit raring Release
Hit raring/main i386 Packages
Hit raring/main i386 Packages
Ign raring/main Translation-en
Ign raring/main Translation-en
Reading package lists... Done

When I performed the install command this is what I got:

$ sudo apt-get install software-center
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package software-center is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'software-center' has no installation candidate

Please help, I'm pretty new to ubuntu and I'm not exactly sure how to get the files for it to be able to install the software-center again.

Some more information: I'm running Ubuntu 13.04. Software-center does not exist at all on the computer as well, I've checked.

I read in another thread that I might have an issue with my source server, but when i checked software and updates it says im downloading from the main server.

Please help!

As per the suggestion to try:

sudo apt-get install ubuntu-desktop

This is what I got:

$ sudo apt-get install ubuntu-desktop
[sudo] password for user: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ubuntu-desktop

As per the suggestion to check the sources.list file, here's what I got:

$ sudo gedit /etc/apt/sources.list                

(process:3045): Gtk-WARNING **: Locale not supported by C library.
    Using the fallback 'C' locale.

(gedit:3045): IBUS-WARNING **: The owner of /home/user/.config/ibus/bus is not root!

The file that opened was blank. Checked if the file was blank and here's what I got:

$ sudo ls -l /etc/apt/sources.list
ls: cannot access /etc/apt/sources.list: No such file or directory
$ sudo cat /etc/apt/sources.list
cat: /etc/apt/sources.list: No such file or directory

I guess its safe to assume that its empty?

share|improve this question
Try with sudo apt-get install ubuntu-desktop. – edwin Aug 9 '13 at 3:55
Doesn't work. edited above post with what I got. – NotCras Aug 9 '13 at 12:24
Please copy the content of your /etc/apt/sources.list file using and post us a link to it as a comment here – That Brazilian Guy Aug 9 '13 at 12:49
That's the thing though, after I got the above errors there, gedit opened up and the sources.list file was blank. – NotCras Aug 9 '13 at 12:59
Try sudo ls -l /etc/apt/sources.list and sudo cat /etc/apt/sources.list to confirm it is really blank. – That Brazilian Guy Aug 9 '13 at 13:07

For some reason, you don't have an /etc/apt/sources.list file, so apt-get don't know where to get your packages from.

Create the file using sudo, then either paste this content, or use this online sources.list generator to customize it -- Choose your country and distro version, then what branches you want. I recommend only the main branches, security updates and recommended updates. Be extra careful before chosing 3rd-party or proposed pre-release updates.

After creating the file, perform apt-get update and then install your package.

share|improve this answer

Software Center is part of the main Ubuntu repository.

First of all, let's check the official info about the package: We can see there is a version of it for 13.04 (see "rarin on the top right area). We can see all the depencies as well.

Now we have two options:

Manual install (not recommended)

You can click the download link at the bottom of the page. From there you can pick from a list of mirrors, download the .deb file and double click on it to install the file. However, this is not the best option as files installed manually won't usually be updated automatically.

Your best option is the following, even suggested on the download page

Add the repository to your list

1) Check the content of your /etc/apt/sources.list file. The first few lines should be similar to:

# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted

# See for how to upgrade to
# newer versions of the distribution.
deb http://SOMETHING/ubuntu/ precise main restricted
deb-src http://SOMETHING/ubuntu/ precise main restricted

My version is 12.04 (codename "precise"), yours should read "raring" instead.

Now you perform apt-get update again, then try installing, it should work.

share|improve this answer
So i tried to get the sources.list file, using the 'sudo gedit /etc/apt/sources.list' but i got an interesting reading and the file was blank. Updating the top with what I found – NotCras Aug 9 '13 at 12:53
@NotCras Open the terminal and type these two commands, paste its outputs on your question: sudo ls -l /etc/apt/sources.list and sudo cat /etc/apt/sources.list – That Brazilian Guy Aug 9 '13 at 13:02
Did it and I would say it seems that its either empty or doesn't exist. Added the output into the question. – NotCras Aug 9 '13 at 13:12

Your Answer


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.