Add to Favourites Add to Favourites    Print this Article Print this Article

fixing apt-get on debian

If your apt-get servers are not working correctly for debian 3.1, edit /etc/apt/sources.list and set

# Main
deb stable main non-free contrib
# Source
deb-src stable main non-free contrib
# Security
deb stable/updates main contrib non-free

Then type:

apt-get update

Once fixed you can run your usual apt-get commands.

For debian 4.0, another sources.list file may look like:

deb etch main
deb-src etch main
deb etch/updates main contrib
deb-src etch/updates main contrib

For Debian 5.0:

deb lenny main
deb-src lenny main

deb lenny/updates main
deb-src lenny/updates main

deb lenny/volatile main
deb-src lenny/volatile main

Debian 6, 32-bit:

deb squeeze main
deb-src squeeze main

deb squeeze/updates main contrib
deb-src squeeze/updates main contrib

deb squeeze-updates main contrib
deb-src squeeze-updates main contrib

Debian 8, 64-bit

deb jessie main
deb-src jessie main

deb jessie/updates main
deb-src jessie/updates main

# jessie-updates, previously known as 'volatile'
deb jessie-updates main
deb-src jessie-updates main

Was this answer helpful?

Also Read