LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-24-2017, 11:52 PM   #1
Eoin Dubh
LQ Newbie
 
Registered: Dec 2006
Location: California
Distribution: Ubuntu, CentOS, Debian
Posts: 10

Rep: Reputation: 0
apt-get update does not work


I have been asked to fix a phpBB system running on Ubuntu 16.04. It has been a couple of years since I worked with Ubuntu I have forgotten a lot. I have installed a virtual Ubuntu 16.04 server in VMware Workstation and have networking set to bridged mode. I can ping the IP addresses that are in the sources.list file and I can ping the names. But when I run apt-get update it fails to connect to any of the URLs. Any ideas on how to get past this? My home network does not use IPv6 and some of the IPs that show when I run apt-get update appear to be IPv6 but even the IPv4 addresses cannot connect.

Any suggestions?
 
Old 02-25-2017, 10:39 AM   #2
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
I assume you are using
Code:
sudo apt-get update
If you list your sources.list. And maybe your sudoers file to make sure
the user is allowed to update like they are admin.

This VM way you are using is above my paygrade however. Maybe the VM is not allowed sudo privileges on a remote box.
 
Old 02-25-2017, 01:24 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
in addition to what rokytnji said & requested, can you post the output of
Code:
ping 8.8.8.8
ping archive.org
 
Old 02-25-2017, 06:15 PM   #4
Eoin Dubh
LQ Newbie
 
Registered: Dec 2006
Location: California
Distribution: Ubuntu, CentOS, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
Output of
Code:
ping 8.8.8.8
64 BYTES FROM 8.8.8.8 ICMP_SEQ=1 TTL=56 TIME=24.2 MS
Outout of
Code:
ping archive.org
64 bytes from www.archive.org (207.241.224.2): icmp_seq=1 ttl=50 tome=24.9 ms
Output of
Code:
nano /etc/apt/sources.list

#

# deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420)]/ xenial main restricted

#deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420)]/ xenial main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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:///us.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-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://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://de.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe 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 xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
It makes no difference if I am logged in as root or using sudo from my login. The command hangs on the first lookup. If I change the url from us.archive.ubuntu.com to just archive.unbuntu.com, it still hangs, but the IP changes from 207.241.224.2 to 91.189.88.149. Changing the url to archive.unbuntu.org changes the IP to 198.105.224.130.
 
Old 02-25-2017, 07:31 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Could you possibly paste the output from apt-config dump so that we can check that there are no obvious apt configuration problems that might be causing the problem?
 
Old 02-25-2017, 09:07 PM   #6
Eoin Dubh
LQ Newbie
 
Registered: Dec 2006
Location: California
Distribution: Ubuntu, CentOS, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
How do I do that as it is a fresh install with nothing other that the base system and I can't get it to update or install anything. There is no graphical interface and I cannot FTP to it to get the dump file which is @ 6 screens long.
 
Old 02-25-2017, 09:24 PM   #7
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
What are the contents of your /etc/apt/sources.list file?
 
Old 02-25-2017, 09:52 PM   #8
Eoin Dubh
LQ Newbie
 
Registered: Dec 2006
Location: California
Distribution: Ubuntu, CentOS, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
It seems that since the install is not totally finished, i.e. the update and upgrade have not been run, I cannot install the VMware Tools to setup a shared directory with the host to get to the dump file. And I cannot screenshot the VM window. I can ping the host from the VM and can also ping the router, the DNS servers and the IPs that show when I run the update command, I just cannot connect to any of the Ubuntu repositories. This whole exercise is the setup a dev setup to try upgrading a phpBB system to the current version. It is currently been running since 2 Feb 2003 and has almost 13,000 users and almost 200,000 posts so I want to work out the upgrade methodology in a dev environment first before touching the live system. I will have to think about it overnight and see if I can get it to work. Is it possible to download the update programs and burn them to CD/DVD?
 
Old 02-26-2017, 03:12 AM   #9
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Make sure that you have a working

Code:
/etc/resolv.conf
 
Old 02-26-2017, 04:41 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Eoin Dubh View Post
Output of
Code:
ping 8.8.8.8
64 BYTES FROM 8.8.8.8 ICMP_SEQ=1 TTL=56 TIME=24.2 MS
Outout of
Code:
ping archive.org
64 bytes from www.archive.org (207.241.224.2): icmp_seq=1 ttl=50 tome=24.9 ms
that is only the first line.
please post the COMPLETE output.
 
Old 02-26-2017, 10:38 AM   #11
Eoin Dubh
LQ Newbie
 
Registered: Dec 2006
Location: California
Distribution: Ubuntu, CentOS, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
ohdoho,

As I said several posts ago, I cannot get a screenshot of the screen. In both instances of the pings the output was the same for as long as I wanted it to run.

c0wb0y,

resolve.conf shows:
nameserver 68.94.156.8
nameserver 68.94.157.8
nameserver 8.8.8.8

The first two are the nameservers from my ISP.

frankbell,

The output of the sources.list is 3 above yours.
 
Old 02-26-2017, 11:39 AM   #12
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Just curious if you tried

Code:
sudo -i
then password

then as root

Code:
apt-get update
Just poking and hoping here.
 
Old 02-26-2017, 11:45 AM   #13
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Eoin Dubh View Post
How do I do that as it is a fresh install with nothing other that the base system and I can't get it to update or install anything. There is no graphical interface and I cannot FTP to it to get the dump file which is @ 6 screens long.
How did you produce the output from nano /etc/apt/sources.list in post #4?

You would use the same technique to produce the output from apt-config dump.
 
Old 02-26-2017, 12:49 PM   #14
Eoin Dubh
LQ Newbie
 
Registered: Dec 2006
Location: California
Distribution: Ubuntu, CentOS, Debian
Posts: 10

Original Poster
Rep: Reputation: 0
hydrurga,

I have several installs of Ubuntu in various virtual machines for different dev purposes. I took a dump from one of then and edited it so that was the same as the new one.
 
Old 02-26-2017, 12:59 PM   #15
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ah, I see. If, apart from the problem at hand, you have internet access on the VM, why don't you upload the file onto the internet and then download it onto your main machine? Or, if not, save it to a USB stick and transfer it across? Or is the latter dependent on VMWare Tools?
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my apt-get update wont work chaseseith Linux - Newbie 11 09-14-2011 11:51 PM
update manager will not work due to apt-get. stargrazer1 Linux - Newbie 4 03-20-2011 03:19 AM
Why apt-get update doesn't work? yuri16 Linux - Newbie 3 02-11-2009 12:07 AM
Why apt-get update doesn't work? yuri16 Debian 4 02-10-2009 11:17 PM
apt-get update doesn't work cccc Debian 1 01-04-2008 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration