After installed the Debian operating system  update the basic packages using apt-get command,

#  apt-get update

Ign stable Release.gpg
Ign stable Release
Err stable/main Sources
  404  Not Found [IP: 80]
Err stable/main i386 Packages
  404  Not Found [IP: 80]
Ign stable/main Translation-en_US
Ign stable/main Translation-en
W: Failed to fetch  404  Not Found [IP: 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

The package updating failed may be missing the "stable" part of the repository, you need to check the sources.list file,

Follow the steps:

You can added 'wheezy/updates' repository which contains all Debian packages.

The debian provide easy steps to get the stable packages, open the url :

Select the Country name which is nearest of you

Select your Debian release version.

Select your architeture: (32 bit or 64 bit)

Select sources

Click on "Generate Sources List"

Copy and paste the lines to your sources.list file,
#  vim /etc/apt/sources.list

deb stable main contrib non-free
deb wheezy-updates main contrib non-free
deb wheezy/updates main contrib non-free
# apt-get update

Then, you may get an error like, Unmet dependencies....


E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

# apt-get autoclean

# apt-get clean

# apt-get -f install