Reinstallation software-center issues

Asked by John

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 http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://dl.google.com stable/main i386 Packages
Hit http://ppa.launchpad.net raring Release.gpg
Hit http://ppa.launchpad.net raring Release
Ign http://dl.google.com stable/main Translation-en
Hit http://ppa.launchpad.net raring/main i386 Packages
Hit https://private-ppa.launchpad.net raring Release.gpg
Ign http://ppa.launchpad.net raring/main Translation-en
Hit https://private-ppa.launchpad.net raring Release.gpg
Hit https://private-ppa.launchpad.net raring Release
Hit https://private-ppa.launchpad.net raring Release
Hit https://private-ppa.launchpad.net raring/main i386 Packages
Hit https://private-ppa.launchpad.net raring/main i386 Packages
Ign https://private-ppa.launchpad.net raring/main Translation-en
Ign https://private-ppa.launchpad.net 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.

Somewhere else suggested 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

I also checked my sources.list file and this is what happened:

$ 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?

Please help!!

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

use gksudo for gedit as it is a GUI app. sudo is not suitable for GUI apps and will cause issues.

What is the output of:

lsb_release -a

Thanks

Revision history for this message
John (2oomorrow) said :
#2

lsb_release-a output is as follows:

sh: 16: lsb_release-a: not found

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

There is a space between lsb_release and -a

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

It seems that you lost the file /etc/apt/sources.list

Please issue this command in a terminal

find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

then select all output, copy it and paste into this question document that we can see it.

Possible actions to rectify your situation:

The contents of /etc/apt/sources.list should be something like

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ raring main restricted universe multiverse

###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ raring-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ raring-updates main restricted universe multiverse

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu raring partner

###### Ubuntu Extras Repo
deb http://extras.ubuntu.com/ubuntu raring main

Issue the command
gksudo gksudo gedit /etc/apt/sources.list
paste the addresses as listed above
save the file
issue the commands
sudo agt-get update
sudo apt-get upgrade

Can you help with this problem?

Provide an answer of your own, or ask John for more information if necessary.

To post a message you must log in.