Hi everyone.
I recently installed an Ubuntu11.10serv64 on a virtual machine and get few troubles with it.
Actually when I try to run or I get error messages that tell me the update failed.
Erros for "apt-get update"
Code:
apt-get update
Err http://ch.archive.ubuntu.com oneiric InRelease
Err http://security.ubuntu.com oneiric-security InRelease
Err http://ch.archive.ubuntu.com oneiric-updates InRelease
Err http://ch.archive.ubuntu.com oneiric-backports InRelease
Err http://ch.archive.ubuntu.com oneiric Release.gpg
Temporary failure resolving 'ch.archive.ubuntu.com'
Err http://security.ubuntu.com oneiric-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://ch.archive.ubuntu.com oneiric-updates Release.gpg
Temporary failure resolving 'ch.archive.ubuntu.com'
Err http://ch.archive.ubuntu.com oneiric-backports Release.gpg
Temporary failure resolving 'ch.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/oneiric-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg Temporary failure resolving 'ch.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg Temporary failure resolving 'ch.archive.ubuntu.com'
W: Failed to fetch http://ch.archive.ubuntu.com/ubuntu/dists/oneiric-backports/Release.gpg Temporary failure resolving 'ch.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
and here is the error for "aptitude update"
Code:
aptitude update
Err http://ch.archive.ubuntu.com oneiric InRelease
Err http://security.ubuntu.com oneiric-security InRelease
Err http://ch.archive.ubuntu.com oneiric-updates InRelease
Err http://ch.archive.ubuntu.com oneiric-backports InRelease
Err http://security.ubuntu.com oneiric-security Release.gpg
Temporary failure resolving 'security.ubuntu.com'
Err http://ch.archive.ubuntu.com oneiric Release.gpg
Temporary failure resolving 'ch.archive.ubuntu.com'
Err http://ch.archive.ubuntu.com oneiric-updates Release.gpg
Temporary failure resolving 'ch.archive.ubuntu.com'
Err http://ch.archive.ubuntu.com oneiric-backports Release.gpg
Temporary failure resolving 'ch.archive.ubuntu.com'
I need to install some programs on my Ubu11.10 serv like apache2 and ruby environments.
I get this error when trying "apt-get install apache2"
Code:
apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package apache2
Here is my "sources.list" file
Code:
#
# deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release amd64 (20111011)]/ dists/oneiric/main/binary-i386/
# deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release amd64 (20111011)]/ dists/oneiric/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release amd64 (20111011)]/ oneiric main restricted
#deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release amd64 (20111011)]/ dists/oneiric/main/binary-i386/
#deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release amd64 (20111011)]/ dists/oneiric/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 11.10 _Oneiric Ocelot_ - Release amd64 (20111011)]/ oneiric main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric universe
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric universe
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric-updates universe
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric multiverse
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ch.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb-src http://ch.archive.ubuntu.com/ubuntu/ oneiric-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb-src http://security.ubuntu.com/ubuntu oneiric-security main restricted
deb http://security.ubuntu.com/ubuntu oneiric-security universe
deb-src http://security.ubuntu.com/ubuntu oneiric-security universe
deb http://security.ubuntu.com/ubuntu oneiric-security multiverse
deb-src http://security.ubuntu.com/ubuntu oneiric-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
#deb http://archive.canonical.com/ubuntu oneiric partner
#deb-src http://archive.canonical.com/ubuntu oneiric partner
## Uncomment the following two lines to add software from Ubuntu's
## 'extras' repository.
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
#deb http://extras.ubuntu.com/ubuntu oneiric main
#deb-src http://extras.ubuntu.com/ubuntu oneiric main
I saw on the depots web index that some changes has been made on Oneiric files thoses previews days.
Is my problem from an update of Oneiric depots or does it come from something else?
If someone have an idea about how to solve my problem it will help me a lot.
*I work in Root@host user. It's a test server, and to work faster I directly work as Root (no need to type sudo before commands, I tryied each one with it and it show the same errors)*
Cordialy, Zyth.
*Edit (27.02.2012): The problem reason was I didn't have any "/etc/resolv.conf" file on my server. Thanks all for your answers*
Bookmarks