LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to get repositories list - Debian (http://www.linuxquestions.org/questions/linux-newbie-8/unable-to-get-repositories-list-debian-4175414932/)

LaCaradeculito 07-04-2012 06:02 PM

Unable to get repositories list - Debian
 
Hi

While updating packages information all added repositories seem to be active but much of it fail to download.

So I'm trying to manage repositories but for some reason I fail to get to the list of them both through synaptic and Terminal. Synaptic seems to try but doesn't open the box after a while, and the last one returns "bash: /etc/apt/sources.list: Permission denied" to "/etc/apt/sources.list" (as root, of course).

So I went to the folder, but there's almost nothing there. Just a .txt that goes:

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb http://dl.google.com/linux/chrome/deb/ stable main

Do you think having added wheezy repositories to squeezy could be a cause? I got GIMP and Inkscape new versions from them, but I didn't install anything else.

I appreciate any help.
Best.

(very newbie, BTW)

TobiSGD 07-04-2012 06:17 PM

/etc/apt/sources.list is not an executable file, this is why you get the "Permission denied" error. To look at the contents you can use
Code:

cat /etc/apt/sources.list
Quote:

Having added wheezy repositories to squeezy could be a cause?
The next time you update your system it will automatically upgrade the whole system to Wheezy, regardless which programs you have installed before. In general, mixing Stable and Testing is a very bad idea and is most likely a reason for a system that is not working correctly. For example, Gimp 2.8 needs upgrades in many libraries that are essential for many programs (like glib2). Installing Gimp from an activated Wheezy repository will also pull in those libraries and can break your system.

In short: Never mix repositories (especially not Stable with Testing or Unstable) if you do not exactly know what you are doing and which consequences this may have.
I would recommend to either try to do a full upgrade to Wheezy or to restore a backup from the time before you added the Wheezy repositories.

LaCaradeculito 07-04-2012 07:47 PM

Yes, there they were all the repositories that I knew; so I'm trying the first option... upgrading to Wheezy. Hope it helps a normal use of Synaptic.

Thanks very much for your quick response and advice.

LaCaradeculito 07-17-2012 04:21 PM

I finally recovered synaptic's functionality after upgrading. So it's solved. Thanks a lot.

M.

TroN-0074 07-17-2012 06:28 PM

Quote:

Originally Posted by LaCaradeculito (Post 4730990)
I finally recovered synaptic's functionality after upgrading. So it's solved. Thanks a lot.

M.

Nice username!

LaCaradeculito 07-17-2012 06:45 PM

Even nicer face! :)


All times are GMT -5. The time now is 09:36 PM.