Thursday, April 25, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 10455  / 2 Years ago, wed, june 22, 2022, 8:55:11

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.



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?


More From » installation

 Answers
6

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.


[#30017] Wednesday, June 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tudatchful

Total Points: 270
Total Questions: 109
Total Answers: 122

Location: Palau
Member since Tue, May 30, 2023
12 Months ago
;