rmtogether
asked on
Ubuntu (14.04.1) sudo apt-get update Error
our lab recently has a new Ubuntu (14.04.1) machine but many of software package is out of date.
I try to update it before upgrade to Ubuntu 16.04. However, there is always problems for the command "sudo apt-get update"
I have googled this problem and change "/etc/apt/sources.list" several times, but the error still exists.
I am thinking the error may come from => Could not resolve 'hcapxb01'
I have no idea about the 'hcapxb01'. My machine has internet connection but I can't ping or nslookup the 'hcapxb01'
Experts, please help me to slove "sudo apt-get update" error. Thank you
Snap1.png
I try to update it before upgrade to Ubuntu 16.04. However, there is always problems for the command "sudo apt-get update"
I have googled this problem and change "/etc/apt/sources.list" several times, but the error still exists.
I am thinking the error may come from => Could not resolve 'hcapxb01'
I have no idea about the 'hcapxb01'. My machine has internet connection but I can't ping or nslookup the 'hcapxb01'
Experts, please help me to slove "sudo apt-get update" error. Thank you
Snap1.png
ASKER
Hi Dr. Klahn,
I copy and past your code to /etc/apt/sources.list and run "apt-get update" again. It still has the similar problem. the "Could not resolve 'hcapxb01'". please see my result below.
I copy and past your code to /etc/apt/sources.list and run "apt-get update" again. It still has the similar problem. the "Could not resolve 'hcapxb01'". please see my result below.
fujitsu@hcavfb11:~$ sudo apt-get update
[sudo] password for fujitsu:
Ign file: InRelease
Get:1 file: Release.gpg [819 B]
Get:2 file: Release [574 B]
Ign file: Translation-en_US
Ign file: Translation-en
Err http://security.debian.org jessie/updates InRelease
Err http://security.debian.org jessie/updates Release.gpg
Could not resolve 'hcapxb01'
Err http://ftp.us.debian.org stable InRelease
Err http://ftp.us.debian.org jessie-updates InRelease
Err http://ftp.us.debian.org stable Release.gpg
Could not resolve 'hcapxb01'
Err http://ftp.us.debian.org jessie-updates Release.gpg
Could not resolve 'hcapxb01'
Reading package lists... Done
W: Failed to fetch http://ftp.us.debian.org/debian/dists/stable/InRelease
W: Failed to fetch http://ftp.us.debian.org/debian/dists/jessie-updates/InRelease
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease
W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'hcapxb01'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/stable/Release.gpg Could not resolve 'hcapxb01'
W: Failed to fetch http://ftp.us.debian.org/debian/dists/jessie-updates/Release.gpg Could not resolve 'hcapxb01'
W: Some index files failed to download. They have been ignored, or old ones used instead.
No, no, no. You cannot use that file on Ubuntu. It is a Debian file. Your file should look something like that one but they are not interchangeable parts. It is extremely fortunate that the downloads failed, because if any had succeeded it would have completely corrupted your system's apt database and you would have to restore it from the most recent full backup.
Please show us the content of your system's file.
Please show us the content of your system's file.
ASKER
Thank you for letting me know Dr. Klahn
are you saying my original "/etc/apt/sources.list" file?
it only has 1 line as below
are you saying my original "/etc/apt/sources.list" file?
it only has 1 line as below
#deb file:/var/tmp/repo_forZDL/ ./
It seems that your entire repo is based on a local file located at /var/tmp/repo_forZDL which is strange... Not because it's a file, but rather because of the location...
If the machine is brand new and did not come preinstalled with various software from a certain vendor, you can use the following one-liner to restore the source list to a default Ubuntu config:
Please note, that if the server came preloaded with various software, using the method above is not recommended and you should contact the software vendor for assistance!
If the machine is brand new and did not come preinstalled with various software from a certain vendor, you can use the following one-liner to restore the source list to a default Ubuntu config:
printf 'deb http://archive.ubuntu.com/ubuntu %s main multiverse universe restricted\n' $(lsb_release -sc){,-security} > /etc/apt/sources.list
Please note, that if the server came preloaded with various software, using the method above is not recommended and you should contact the software vendor for assistance!
Hi,
can you please share me what is the exact error. So i can go through it.
can you please share me what is the exact error. So i can go through it.
ASKER
Hi, Thanks for the comments
@David Sankovsky, this is a brand new machine but with various preloaded software.
Software(Pre-installed):
- Ubuntu 14.04.1 LTS
- zabbix 3.0.7 (not activated)
- docker 1.13.0
- nvidia-docker 1.0.0-1
- TensorFlow 0.12.1
- Chainer v1.19.0
- Caffe rc3
- Jupiter 0.0.0
@Prabhin MP, I already posted the exact error in previous conversations.
@David Sankovsky, this is a brand new machine but with various preloaded software.
Software(Pre-installed):
- Ubuntu 14.04.1 LTS
- zabbix 3.0.7 (not activated)
- docker 1.13.0
- nvidia-docker 1.0.0-1
- TensorFlow 0.12.1
- Chainer v1.19.0
- Caffe rc3
- Jupiter 0.0.0
@Prabhin MP, I already posted the exact error in previous conversations.
@rmtogether
Preloaded by who? Did you install all the software? or did you get eh machine from a certain software vendor who installed all of this.
If you got this from a vendor, contact them as the file might be something they use to implement version control or other functions!
Preloaded by who? Did you install all the software? or did you get eh machine from a certain software vendor who installed all of this.
If you got this from a vendor, contact them as the file might be something they use to implement version control or other functions!
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@David Sankovsky, everything is preload by the vendor, but they only make sure hardware is running properly with very limited support for software.
@Prabhin MP, there is still same similar error like below
@Prabhin MP, there is still same similar error like below
fujitsu@hcavfb11:~$ sudo apt-get update
[sudo] password for fujitsu:
Ign file: InRelease
Get:1 file: Release.gpg [819 B]
Get:2 file: Release [574 B]
Ign file: Translation-en_US
Ign file: Translation-en
Err http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
Err http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease
Err http://us-east-1.ec2.archive.ubuntu.com trusty-backports InRelease
Err http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg
Could not resolve 'hcapxb01'
Err http://us-east-1.ec2.archive.ubuntu.com trusty-updates Release.gpg
Could not resolve 'hcapxb01'
Err http://us-east-1.ec2.archive.ubuntu.com trusty-backports Release.gpg
Could not resolve 'hcapxb01'
Err http://security.ubuntu.com trusty-security InRelease
Err http://security.ubuntu.com trusty-security Release.gpg
Could not resolve 'hcapxb01'
Reading package lists... Done
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/InRelease
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/InRelease
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg Could not resolve 'hcapxb01'
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg Could not resolve 'hcapxb01'
W: Failed to fetch http://us-east-1.ec2.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg Could not resolve 'hcapxb01'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/trusty-security/Release.gpg Could not resolve 'hcapxb01'
W: Some index files failed to download. They have been ignored, or old ones used instead.
fujitsu@hcavfb11:~$
Seem like you have DNS issue in your network. Can you share me resolv.conf file contents.
ASKER
Hi @Prabhin MP
there was no DNS setting before. but I already add in the following
there was no DNS setting before. but I already add in the following
fujitsu@hcavfb11:~$ cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4
HI,
@rmtogether
Are you sure that you are able to access internet, I mean you are able to ping google.com.
If yes, due have any proxy server for performing update.
@rmtogether
Are you sure that you are able to access internet, I mean you are able to ping google.com.
If yes, due have any proxy server for performing update.
ASKER
@Prabhin MP
Yes, Ping is no problem.
Yes, Ping is no problem.
fujitsu@hcavfb11:~$ ping google.com
PING google.com (172.217.27.174) 56(84) bytes of data.
64 bytes from kix05s07-in-f14.1e100.net (172.217.27.174): icmp_seq=1 ttl=53 time=2.86 ms
64 bytes from kix05s07-in-f14.1e100.net (172.217.27.174): icmp_seq=2 ttl=53 time=2.63 ms
64 bytes from kix05s07-in-f14.1e100.net (172.217.27.174): icmp_seq=3 ttl=53 time=2.65 ms
64 bytes from kix05s07-in-f14.1e100.net (172.217.27.174): icmp_seq=4 ttl=53 time=2.68 ms
^C
--- google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 2.636/2.710/2.865/0.090 ms
Any HTTP proxy configured for performing update and upgrade??
ASKER
@Prabhin MP, Could you please teach me how to find our this (HTTP proxy )
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Prabhin MP, Thank you finally I found "hcapxb01". please see below. How should I do next?
the whole system is with 1 server (with docker install, is this matter?), 1 NAS, 2 switches.
fujitsu@hcavfb11:~$ cat /etc/apt/apt.conf
Acquire::ftp::proxy "ftp://hcapxb01:8080/";
Acquire::http::proxy "http://hcapxb01:8080/";
Acquire::https::proxy "https://hcapxb01:8080/";
fujitsu@hcavfb11:~$
the whole system is with 1 server (with docker install, is this matter?), 1 NAS, 2 switches.
ASKER
I guess hcapxb01 is the server when the vendor was doing configuration on their internal network. Now this server is move to our data center which is completed out of their network
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi Prabhin MP
thank you so much for your help!!
thank you so much for your help!!
A typical Debian / Ubuntu sources.list file should look something like the one below:
Open in new window
Please post the contents of the affected system's /etc/apt/sources.list file, and we can then see about finding a solution.