Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
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?
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.
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.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.