8

I was trying to update apt-get and I keep getting 404 errors - I assumed it was the fault of my proxy, which has been causing errors in wget and in the browser, but upon visiting one of the links that reported an error, I found that it was trying to download a "Sources" file which on the server was actually stored as "Sources.bz2"

I was able to get the list of sources from this - where should I put it so that apt-get will use them?

EDIT: current sources.list (Ubuntu 14.04)

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


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

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

Current apt.conf

Acquire::http::User-Agent "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36";
Acquire::http::Proxy "http://129.###.###.###:80";
user3475234
  • 289
  • 1
  • 5
  • 12

2 Answers2

9

Your sources.list is stored at /etc/apt/ folder. To see and edit them you can run:

cat /etc/apt/sources.list

To edit that file run:

sudo nano /etc/apt/sources.list

or

sudo apt edit-sources

Your PPAs are stored to:

ls /etc/apt/sources.list.d/*

Though do mention when editing those files manually make sure you know what you are doing/editing that this/those repos/sources that you're adding will definitely work with your current distro otherwise you can break/damage your apt. Usually when adding new repositories you should run:

sudo add-apt-repository some:ppa
JoKeR
  • 7,062
1

Not sure if you mean this: /etc/apt/sources.list

Fern Moss
  • 8,925
derHugo
  • 3,376
  • 5
  • 34
  • 52