LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   No access to Synaptic in Ubuntu 10.10 (https://www.linuxquestions.org/questions/linux-software-2/no-access-to-synaptic-in-ubuntu-10-10-a-859799/)

teboil12 01-31-2011 11:19 AM

No access to Synaptic in Ubuntu 10.10
 
I just made something stupid while downloading Skype, and as a result Synaptic Package manager don't open, it tells me that "gksudo" is unknown on line 1 in sources list and tells me to go there and fix it.Ubuntu software center is equally kicking my ass. I went to /etc/apt/sources list and tried to remove "gksudo... but could not. Can anybody tell me what to do when the message reads: "the list of sources could not be read. Go to the repository dialog to correct the problem". Please tell me step by step. I'm a newbie...

teboil

petebow4 01-31-2011 11:33 AM

Quote:

I just made something stupid while downloading Skype
Like what?

Quote:

I went to /etc/apt/sources list and tried to remove "gksudo... but could not.
You won't be removing gksudo, this is a sudo for the kde environment.

You have probably have an error in your sources list. Could you please post the contents of /etc/apt/sources.list

teboil12 01-31-2011 11:49 AM

gksudo gedit /etc/apt/sources.list#deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://fi.archive.ubuntu.com/ubuntu/ maverick restricted main
deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://fi.archive.ubuntu.com/ubuntu/ maverick-updates restricted main
deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick-updates restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fi.archive.ubuntu.com/ubuntu/ maverick universe
deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick universe
deb http://fi.archive.ubuntu.com/ubuntu/ maverick-updates universe
deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fi.archive.ubuntu.com/ubuntu/ maverick multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick multiverse
deb http://fi.archive.ubuntu.com/ubuntu/ maverick-updates multiverse
deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://fi.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse
# deb-src http://fi.archive.ubuntu.com/ubuntu/ maverick-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu maverick partner
deb-src http://archive.canonical.com/ubuntu maverick partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu maverick main

deb http://security.ubuntu.com/ubuntu maverick-security restricted main
deb-src http://security.ubuntu.com/ubuntu maverick-security restricted
deb http://security.ubuntu.com/ubuntu maverick-security universe
deb-src http://security.ubuntu.com/ubuntu maverick-security universe
deb http://security.ubuntu.com/ubuntu maverick-security multiverse
deb http://fi.archive.ubuntu.com/ubuntu/ maverick-proposed restricted main multiverse universe
deb-src http://security.ubuntu.com/ubuntu maverick-security multiverse

petebow4 01-31-2011 11:58 AM

Quote:

gksudo gedit /etc/apt/sources.list#deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
That's your problem! Remove everything up to the # and save the file. The first line should look like
Code:

#deb cdrom:[Ubuntu 10.10 _Maverick Meerkat_ - Release i386 (20101007)]/ maverick main restricted
when you are finished. If you're worried about making a mistake make a copy of the file first!

teboil12 01-31-2011 12:25 PM

But how to do it? When I go there, the cursor is "alive and kicking", but the second I try to do anything like going backspace it just dies and stays immovable, if I paint part of the text beginning with "gksudo..." blue in order to delete that part, nothing happens.
Give me a hint, please.

teboil

teboil12 01-31-2011 12:30 PM

I managed to get the text changed, but I was told that I have not the right to save any changes that I did, so what now???

reed9 01-31-2011 12:49 PM

You need to have root privileges to edit the file.

Do
Code:

gksudo gedit /etc/apt/sources.list
To open gedit as root. Edit and save.

teboil12 01-31-2011 02:10 PM

Thank you, my friend. Everything seems OK now!

teboil

petebow4 01-31-2011 02:19 PM

You're welcome. Don't forget to mark the thread as solved! :)


All times are GMT -5. The time now is 10:19 AM.