synaptic

windofxinjiang1's picture
AttachmentSize
Image icon picture.1115.65 KB
Image icon picture.2132.98 KB
Image icon picture.3112.12 KB

Forums: 

Hello,

I have following postinstall problems. Please look on attached pics.

Picture - 1.When I open synaptic, it displayes picture no.1- I do not know what should i do?

Picture - 2. It shows this picture -(Software Sources) ---- i can not check anything, niether anything in of Downloadable from internet list (in Download from I can choose only -MAIN SERVER or US SERVER), nor anything in Updates list.
However when i use terminal I can do the update

Picture - 3 . I have tried to use install CD but it did not work?How to proceed?

I AM GRATEFUL FOR ANY ADVICE. HOPE IT IS NOT A BUG IN GNOME.

I DO NOT WANT TO REINSTALL WHOLE SYSTEM.

THANK very much!

tom

> Picture - 1.When I open

IntnsRed's picture

> Picture - 1.When I open synaptic, it displayes picture no.1- I do not know what should i do?

Okay, it's telling you that you have a duplicate entry in "sources.list". That file is actually located in /etc/apt/sources.list. The GUI program (Synaptic) is hiding some of this information from you.

You could, logged in as the root (superuser) user, edit the file /etc/apt/sources.list and put a pound sign (the # sign) at the left edge of the duplicate line. The # will comment out that entire line. Just make sure it's really a duplicate line.

> Picture - 2. It shows this picture -(Software Sources) ---- i can not check anything, niether anything in of Downloadable from internet list

I don't use Synaptic, but my guess is that you're logged in as a regular user and not as "root" (the superuser). If you are logged in as a regular user, try logging in as root and running Synaptic (but be aware, X, the GUI, may prevent users from logging in as root depending on how it's configured.)

> Picture - 3 . I have tried to use install CD but it did not work?How to proceed?

This sounds like the DVD/CD-ROM wasn't in the DVD/CD-ROM, or it wasn't mounted. This could also be an issue of you not being the root user.

> I DO NOT WANT TO REINSTALL WHOLE SYSTEM.

Why not? It's easier the second time! Blum 3

Seriously, this isn't Windows. It is extremely unlikely you would have to install the entire OS. GNU/Linux is highly modular; if something was dramatically wrong, the typical "worst case" is that you'd have to uninstall/reinstall some modules/packages -- but not the entire system.

Let's imagine there's something seriously wrong with Synaptic. If that were the case, Debian has other package managers -- aptitude, kpackage, dselect (etc.) could be used to do the exact same function. Or (always way more than one way to do things! Smile ) you could use "apt-get" from the command line as the root user and add/remove/purge software packages.

But in this case it looks like it's just an issue of you needing to be logged in as the root user.

synaptic

tasab's picture

Pic (1) Assumed you need to be as a root , the root command as su - , then followthe screen .

Pic (2) You must to make tick to the server you want to download from .

Pic (3) as replied before you need to correct the source.list

Solution...

IntnsRed's picture

What the error is telling you is that you have a duplicate entry for the CD-ROM in the file /etc/apt/sources.list. That file, sources list, is just a text file but it is critical -- it lists out all of the sources that apt-get or synaptic uses to grab files from.

In your case, the CD-ROM is listed multiple times and that is causing an error for Synaptic.

Since you have a working Internet connection, you don't really need the CD-ROM at all (you've probably installed all the software from the CD-ROM that you're going to anyway). So what I'd do is this:

• Manually edit /etc/apt/sources.list and "comment out" the entry for the CD-ROM. Since /etc/apt/sources.list is a system file this must be done by the root user (the super-user). If you open up a command prompt as the root user (you may have to do a "su" and enter the root user's password to become root), you can then issue the command "nano /etc/apt/sources.list". That will run a text editor, nano, to edit the /etc/apt/sources.list file.

• Once the text editor opens up, identify the 2 (or more?) lines that reference the CD-ROM. In column #1 (all the way to the left), make the first character a # sign. When apt-get reads the first character as a #, it will consider the line a comment and will ignore that line.

• Exit the text editor and save the file. With that, apt-get and/or Synaptic will ignore the CD-ROM.

In your picture #2, make sure you have at least the "main" repository/software source checked/selected. Main is simply required; "contrib" and "non-free" are optional -- you may want to use them, you may not.

Once you've done that, do a Reload in Synaptic and it should process without error. (You'll actually want to click on "Reload" (to update the package database), then click on "Mark All Upgrades" (to select any updated packages), and finally click on "Apply" to download and update any software.)