Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
09-12-2019, 01:03 PM
#16
Moderator
Registered: Aug 2002
Posts: 25,700
I assume that other network devices can connect to the internet just fine?
wlp3s0 is the wireless and enp2s0 is the wired interface. NetworkManager does not use the /etc/network/interfaces configuration file and when it is running ifup/updown should fail.
Check out this article.
https://www.linuxjournal.com/content/have-plan-netplan
Last edited by michaelk; 09-12-2019 at 01:05 PM .
1 members found this post helpful.
09-12-2019, 01:24 PM
#17
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
well, internet "works", DNS dosn't
/etc/resolv.conf -> ../run/resolvconf/resolv.conf
But, /run/resolvconf/ did not exist so link was always dead
I assumed resolvconf was installed and something went wrong with that.
however, it appears resolvconf was never installed.
what I don't know is why /etc/network/interfaces was edited
I don't know if that was before or after DNS was lost ( or if edit was to fix something else )
it shouldn't make a difference as network manager would setup networking
default Ubuntu18 /etc/network/interfaces
Code:
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
so I assume ifupdown was installed, but again that should not make any difference.
what I don't understand is what messed up the link
manually forced following some blog?
maybe just fixing the link is enough
Code:
sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
I future I may just ask for
Code:
history | grep sudo
and start there
1 members found this post helpful.
09-12-2019, 01:51 PM
#18
Member
Registered: May 2018
Location: Greenwood, IN
Distribution: antiX
Posts: 151
Original Poster
Rep:
Firerat, you asked me before if my Ubuntu 18 was an upgrade or a clean install.
Quote:
was this system upgraded to 18 or was it installed as 18?
It was installed as 18.
Quote:
was this before or after problems?
All these entries and fixes I am making were after the internet connectivity problem.
Here is the current result of "ip addr":
Code:
len@len-Satellite-E45t-A:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 20:1a:06:09:7b:74 brd ff:ff:ff:ff:ff:ff
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 5c:51:4f:5b:1f:4e brd ff:ff:ff:ff:ff:ff
inet 192.168.1.146/24 brd 192.168.1.255 scope global dynamic noprefixroute wlp3s0
valid_lft 43135sec preferred_lft 43135sec
inet6 fe80::4a1:dda3:dec0:6a33/64 scope link noprefixroute
valid_lft forever preferred_lft forever
len@len-Satellite-E45t-A:~$
Quote:
what does /etc/resolv.conf look liek now that resovconf has been removed?
is it now
/etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
what are the contents?
Here is what I got. Once again, there is no resolv.conf file. The results below will speak for themselves:
Code:
len@len-Satellite-E45t-A:~$ cat /etc/resolv.conf
cat: /etc/resolv.conf: No such file or directory
len@len-Satellite-E45t-A:~$ cd /etc
len@len-Satellite-E45t-A:/etc$ ls -al
total 1256
drwxr-xr-x 139 root root 12288 Sep 12 05:56 .
drwxr-xr-x 25 root root 4096 Sep 4 07:10 ..
drwxr-xr-x 3 root root 4096 Apr 26 2018 acpi
-rw-r--r-- 1 root root 3028 Apr 26 2018 adduser.conf
drwxr-xr-x 2 root root 12288 Aug 27 01:11 alternatives
-rw-r--r-- 1 root root 401 May 29 2017 anacrontab
drwxr-xr-x 3 root root 4096 May 6 2018 apache2
-rw-r--r-- 1 root root 433 Oct 1 2017 apg.conf
drwxr-xr-x 6 root root 4096 Mar 13 2019 apm
drwxr-xr-x 3 root root 4096 Nov 2 2018 apparmor
drwxr-xr-x 8 root root 4096 Sep 10 12:12 apparmor.d
drwxr-xr-x 5 root root 4096 Aug 18 20:27 apport
-rw-r--r-- 1 root root 769 Apr 4 2018 appstream.conf
drwxr-xr-x 7 root root 4096 Aug 18 19:59 apt
drwxr-xr-x 3 root root 4096 Feb 6 2019 avahi
-rw-r--r-- 1 root root 2319 Apr 4 2018 bash.bashrc
-rw-r--r-- 1 root root 45 Apr 1 2018 bash_completion
drwxr-xr-x 2 root root 4096 Aug 18 20:27 bash_completion.d
-rw-r--r-- 1 root root 367 Jan 27 2016 bindresvport.blacklist
drwxr-xr-x 2 root root 4096 Apr 20 2018 binfmt.d
drwxr-xr-x 2 root root 4096 Jan 20 2019 bluetooth
-rw-r----- 1 root root 33 Apr 26 2018 brlapi.key
drwxr-xr-x 7 root root 4096 Apr 26 2018 brltty
-rw-r--r-- 1 root root 25341 Apr 17 2018 brltty.conf
drwxr-xr-x 3 root root 4096 Apr 26 2018 ca-certificates
-rw-r--r-- 1 root root 5898 Apr 26 2018 ca-certificates.conf
drwxr-xr-x 2 root root 4096 Apr 26 2018 calendar
drwxr-s--- 2 root dip 4096 Jan 21 2019 chatscripts
-rw-r--r-- 1 root root 155 Nov 4 2018 codehost.conf
lrwxrwxrwx 1 root root 39 Nov 4 2018 codehostprinter.cfg -> /usr/local/brightq//codehostprinter.cfg
drwxr-xr-x 2 root root 4096 Apr 29 2018 compizconfig
drwxr-xr-x 2 root root 4096 May 19 20:04 console-setup
drwxr-xr-x 2 root root 4096 Apr 26 2018 cracklib
drwxr-xr-x 2 root root 4096 Apr 26 2018 cron.d
drwxr-xr-x 2 root root 4096 Sep 4 07:08 cron.daily
drwxr-xr-x 2 root root 4096 Apr 26 2018 cron.hourly
drwxr-xr-x 2 root root 4096 Apr 26 2018 cron.monthly
-rw-r--r-- 1 root root 722 Nov 16 2017 crontab
drwxr-xr-x 2 root root 4096 Aug 18 20:26 cron.weekly
drwxr-xr-x 5 root lp 4096 Sep 12 10:19 cups
drwxr-xr-x 2 root root 4096 Apr 26 2018 cupshelpers
drwxr-xr-x 4 root root 4096 Apr 26 2018 dbus-1
drwxr-xr-x 4 root root 4096 Apr 26 2018 dconf
-rw-r--r-- 1 root root 2969 Feb 28 2018 debconf.conf
-rw-r--r-- 1 root root 11 Jun 25 2017 debian_version
drwxr-xr-x 2 root root 4096 Aug 18 20:27 default
-rw-r--r-- 1 root root 604 Aug 13 2017 deluser.conf
drwxr-xr-x 2 root root 4096 May 1 08:12 depmod.d
drwxr-xr-x 4 root root 4096 May 19 20:02 dhcp
drwxr-xr-x 2 root root 4096 Apr 27 2018 dictionaries-common
drwxr-xr-x 4 root root 4096 Aug 27 01:12 dpkg
-rw-r--r-- 1 root root 14726 Feb 8 2019 drirc
drwxr-xr-x 3 root root 4096 Apr 26 2018 emacs
-rw-r--r-- 1 root root 96 Apr 26 2018 environment
-rw-r--r-- 1 root root 9103 Jul 18 2018 ffserver.conf
drwxr-xr-x 3 root root 4096 Sep 10 12:12 firefox
drwxr-xr-x 4 root root 4096 Apr 26 2018 fonts
-rw-rw-r-- 1 root root 709 May 12 2018 fstab
-rw-r--r-- 1 root root 279 Aug 27 2018 fuse.conf
drwxr-xr-x 3 root root 4096 Feb 3 2019 fwupd
-rw-r--r-- 1 root root 2584 Feb 1 2018 gai.conf
drwxr-xr-x 2 root root 4096 Apr 26 2018 gdb
drwxr-xr-x 8 root root 4096 May 1 08:15 gdm3
drwxr-xr-x 2 root root 4096 Apr 26 2018 geoclue
drwxr-xr-x 4 root root 4096 Apr 26 2018 ghostscript
drwxr-xr-x 3 root root 4096 Mar 2 2019 gimp
drwxr-xr-x 3 root root 4096 Apr 26 2018 glvnd
drwxr-xr-x 2 root root 4096 Feb 3 2019 gnome
drwxr-xr-x 2 root root 4096 Apr 26 2018 groff
-rw-r--r-- 1 root root 908 Mar 13 2019 group
-rw-r--r-- 1 root root 888 Mar 13 2019 group-
drwxr-xr-x 2 root root 4096 May 17 2018 grub-customizer
drwxr-xr-x 5 root root 4096 May 1 08:10 grub.d
-rw-r----- 1 root shadow 754 Mar 13 2019 gshadow
-rw-r----- 1 root shadow 737 Mar 13 2019 gshadow-
drwxr-xr-x 3 root root 4096 Apr 26 2018 gss
drwxr-xr-x 2 root root 4096 Nov 4 2018 gtk-2.0
drwxr-xr-x 2 root root 4096 Aug 18 20:27 gtk-3.0
-rw-r--r-- 1 root root 4861 Feb 22 2018 hdparm.conf
-rw-r--r-- 1 root root 92 Apr 9 2018 host.conf
-rw-r--r-- 1 root root 21 Apr 27 2018 hostname
-rw-r--r-- 1 root root 235 Apr 27 2018 hosts
-rw-r--r-- 1 root root 411 Apr 26 2018 hosts.allow
-rw-r--r-- 1 root root 711 Apr 26 2018 hosts.deny
drwxr-xr-x 2 root root 4096 Apr 26 2018 hp
drwxr-xr-x 3 root root 4096 Apr 26 2018 ifplugd
drwxr-xr-x 2 root root 4096 Aug 18 20:22 ImageMagick-6
drwxr-xr-x 2 root root 4096 Aug 18 20:27 init
drwxr-xr-x 2 root root 4096 Sep 10 12:12 init.d
drwxr-xr-x 5 root root 4096 Aug 18 20:27 initramfs-tools
-rw-r--r-- 1 root root 1748 May 15 2017 inputrc
drwxr-xr-x 2 root root 4096 May 1 08:15 insserv.conf.d
drwxr-xr-x 4 root root 4096 Apr 26 2018 iproute2
-rw-r--r-- 1 root root 26 Aug 5 06:43 issue
-rw-r--r-- 1 root root 19 Aug 5 06:43 issue.net
drwxr-xr-x 3 root root 4096 Apr 28 2018 .java
drwxr-xr-x 5 root root 4096 Aug 18 20:28 java-11-openjdk
drwxr-xr-x 5 root root 4096 Aug 18 20:27 java-8-openjdk
drwxr-xr-x 3 root root 4096 Apr 28 2018 java-8-oracle
drwxr-xr-x 6 root root 4096 Jan 26 2019 kernel
-rw-r--r-- 1 root root 110 Apr 27 2018 kernel-img.conf
-rw-r--r-- 1 root root 1308 Dec 1 2017 kerneloops.conf
drwxr-xr-x 2 root root 4096 Sep 4 07:09 ldap
-rw-r--r-- 1 root root 139196 Sep 12 05:56 ld.so.cache
-rw-r--r-- 1 root root 34 Jan 27 2016 ld.so.conf
drwxr-xr-x 2 root root 4096 Oct 14 2018 ld.so.conf.d
-rw-r--r-- 1 root root 267 Apr 9 2018 legal
-rw-r--r-- 1 root root 27 Jan 18 2018 libao.conf
-rw-r--r-- 1 root root 191 Feb 7 2018 libaudit.conf
drwxr-xr-x 3 root root 4096 Apr 26 2018 libblockdev
drwxr-xr-x 2 root root 4096 Apr 26 2018 libnl-3
drwxr-xr-x 2 root root 4096 Apr 28 2017 libpaper.d
drwxr-xr-x 2 root root 4096 Aug 20 08:25 libreoffice
drwxr-xr-x 4 root root 4096 May 6 2018 lighttpd
-rw-r--r-- 1 root root 1417 Apr 7 2018 lintianrc
-rw-r--r-- 1 root root 2995 Apr 16 2018 locale.alias
-rw-r--r-- 1 root root 9395 Apr 27 2018 locale.gen
lrwxrwxrwx 1 root root 48 Aug 18 20:22 localtime -> /usr/share/zoneinfo/America/Indiana/Indianapolis
drwxr-xr-x 4 root root 4096 Apr 26 2018 logcheck
-rw-r--r-- 1 root root 10550 Jan 25 2018 login.defs
-rw-r--r-- 1 root root 703 Aug 21 2017 logrotate.conf
drwxr-xr-x 2 root root 4096 Aug 27 01:12 logrotate.d
-rw-r--r-- 1 root root 105 Aug 5 06:43 lsb-release
-rw-r--r-- 1 root root 14867 Oct 13 2016 ltrace.conf
-r--r--r-- 1 root root 33 Apr 27 2018 machine-id
-rw-r--r-- 1 root root 111 Feb 13 2018 magic
-rw-r--r-- 1 root root 111 Feb 13 2018 magic.mime
-rw-r--r-- 1 root root 52815 Sep 12 05:56 mailcap
-rw-r--r-- 1 root root 449 Jul 15 2016 mailcap.order
-rw-r--r-- 1 root root 5174 Apr 7 2018 manpath.config
-rw-r--r-- 1 root root 24301 Jul 15 2016 mime.types
-rw-r--r-- 1 root root 812 Mar 24 2018 mke2fs.conf
drwxr-xr-x 2 root root 4096 Aug 18 20:22 modprobe.d
-rw-r--r-- 1 root root 195 Apr 26 2018 modules
drwxr-xr-x 2 root root 4096 Sep 10 12:11 modules-load.d
lrwxrwxrwx 1 root root 19 Apr 27 2018 mtab -> ../proc/self/mounts
-rw-r--r-- 1 root root 624 Aug 8 2007 mtools.conf
drwxr-xr-x 3 root root 4096 Apr 29 2018 mysql
-rw-r--r-- 1 root root 9048 Feb 13 2018 nanorc
drwxr-xr-x 2 root root 4096 Apr 26 2018 netplan
drwxr-xr-x 7 root root 4096 Sep 11 19:03 network
drwxr-xr-x 6 root root 4096 Jan 26 2019 networkd-dispatcher
drwxr-xr-x 7 root root 4096 May 19 20:05 NetworkManager
-rw-r--r-- 1 root root 91 Apr 9 2018 networks
drwxr-xr-x 2 root root 4096 Apr 26 2018 newt
-rw-r--r-- 1 root root 556 Apr 26 2018 nsswitch.conf
drwxr-xr-x 2 root root 4096 Mar 26 2018 ODBCDataSources
-rw-r--r-- 1 root root 0 Mar 26 2018 odbc.ini
-rw-r--r-- 1 root root 0 May 6 2018 odbcinst.ini
drwxr-xr-x 2 root root 4096 May 6 2018 openal
drwxr-xr-x 2 root root 4096 Apr 26 2018 opt
lrwxrwxrwx 1 root root 21 Aug 5 06:43 os-release -> ../usr/lib/os-release
drwxr-xr-x 2 root root 4096 May 1 08:16 PackageKit
-rw-r--r-- 1 root root 552 Apr 4 2018 pam.conf
drwxr-xr-x 2 root root 4096 Sep 10 12:12 pam.d
-rw-rw-r-- 1 root root 7 Apr 27 2018 papersize
-rw-r--r-- 1 root root 2407 Mar 13 2019 passwd
-rw-r--r-- 1 root root 2387 Mar 13 2019 passwd-
drwxr-xr-x 2 root root 4096 Apr 26 2018 pcmcia
drwxr-xr-x 5 root root 4096 Apr 26 2018 perl
drwxr-xr-x 4 root root 4096 Apr 26 2018 pki
drwxr-xr-x 3 root root 4096 Apr 26 2018 pm
-rw-r--r-- 1 root root 7649 Apr 26 2018 pnm2ppa.conf
drwxr-xr-x 5 root root 4096 Apr 26 2018 polkit-1
-rw-rw-r-- 1 root root 350 Apr 27 2018 popularity-contest.conf
drwxr-xr-x 8 root dip 4096 Jan 21 2019 ppp
lrwxrwxrwx 1 root root 18 Aug 27 01:12 printcap -> /run/cups/printcap
-rw-r--r-- 1 root root 581 Apr 9 2018 profile
drwxr-xr-x 2 root root 4096 Sep 4 07:09 profile.d
-rw-r--r-- 1 root root 2932 Dec 25 2016 protocols
drwxr-xr-x 2 root root 4096 Mar 13 2019 pulse
-rw------- 1 root root 0 Apr 26 2018 .pwd.lock
drwxr-xr-x 2 root root 4096 Apr 29 2018 python
drwxr-xr-x 2 root root 4096 Aug 18 20:25 python2.7
drwxr-xr-x 2 root root 4096 Apr 26 2018 python3
drwxr-xr-x 2 root root 4096 Aug 18 20:27 python3.6
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc0.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc1.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc2.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc3.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc4.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc5.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rc6.d
drwxr-xr-x 2 root root 4096 Apr 27 2018 rcS.d
drwxr-xr-x 3 root root 4096 Apr 26 2018 resolvconf
lrwxrwxrwx 1 root root 27 Sep 10 22:46 resolv.conf -> /run/resolvconf/resolv.conf
-rwxr-xr-x 1 root root 268 Jul 21 2017 rmt
-rw-r--r-- 1 root root 887 Dec 25 2016 rpc
-rw-r--r-- 1 root root 1358 Jan 30 2018 rsyslog.conf
drwxr-xr-x 2 root root 4096 May 1 08:09 rsyslog.d
drwxr-xr-x 3 root root 4096 Aug 18 20:25 sane.d
-rw-r--r-- 1 root root 4141 Jan 25 2018 securetty
drwxr-xr-x 4 root root 4096 May 1 07:51 security
drwxr-xr-x 2 root root 4096 Apr 26 2018 selinux
-rw-r--r-- 1 root root 10368 Apr 5 2017 sensors3.conf
drwxr-xr-x 2 root root 4096 Apr 26 2018 sensors.d
-rw-r--r-- 1 root root 19183 Dec 25 2016 services
drwxr-xr-x 2 root root 4096 Jan 26 2019 sgml
-rw-r----- 1 root shadow 1269 Mar 13 2019 shadow
-rw-r----- 1 root shadow 1269 Mar 13 2019 shadow-
-rw-r--r-- 1 root root 73 Apr 26 2018 shells
drwxr-xr-x 2 root root 4096 Aug 18 20:03 skel
drwxr-xr-x 4 root root 4096 Apr 26 2018 speech-dispatcher
drwxr-xr-x 2 root root 4096 May 1 08:11 ssh
drwxr-xr-x 4 root root 4096 Aug 18 20:23 ssl
-rw-r--r-- 1 root root 17 Apr 27 2018 subgid
-rw-r--r-- 1 root root 0 Apr 26 2018 subgid-
-rw-r--r-- 1 root root 17 Apr 27 2018 subuid
-rw-r--r-- 1 root root 0 Apr 26 2018 subuid-
-r--r----- 1 root root 755 Jan 17 2018 sudoers
drwxr-xr-x 2 root root 4096 Apr 26 2018 sudoers.d
-rw-r--r-- 1 root root 2683 Jan 17 2018 sysctl.conf
drwxr-xr-x 2 root root 4096 Sep 10 12:11 sysctl.d
drwxr-xr-x 5 root root 4096 Sep 10 12:11 systemd
drwxr-xr-x 2 root root 4096 Oct 28 2018 terminfo
drwxr-xr-x 2 root root 4096 May 1 08:09 thermald
drwxr-xr-x 2 root root 4096 Aug 18 20:27 thunderbird
-rw-r--r-- 1 root root 29 Aug 18 20:22 timezone
drwxr-xr-x 2 root root 4096 Jan 20 2019 timidity
drwxr-xr-x 2 root root 4096 Apr 20 2018 tmpfiles.d
-rw-r--r-- 1 root root 1260 Feb 25 2018 ucf.conf
drwxr-xr-x 4 root root 4096 Sep 10 12:12 udev
drwxr-xr-x 2 root root 4096 Jan 20 2019 udisks2
drwxr-xr-x 3 root root 4096 May 1 08:09 ufw
-rw-r--r-- 1 root root 403 Mar 1 2018 updatedb.conf
drwxr-xr-x 3 root root 4096 Aug 18 20:27 update-manager
drwxr-xr-x 2 root root 4096 Aug 18 20:27 update-motd.d
drwxr-xr-x 2 root root 4096 Apr 20 2018 update-notifier
drwxr-xr-x 2 root root 4096 May 1 08:12 UPower
-rw-r--r-- 1 root root 1523 Mar 6 2018 usb_modeswitch.conf
drwxr-xr-x 2 root root 4096 Feb 23 2018 usb_modeswitch.d
-rw-r--r-- 1 root root 51 Feb 19 2016 vdpau_wrapper.cfg
drwxr-xr-x 2 root root 4096 Aug 18 20:26 vim
lrwxrwxrwx 1 root root 23 Apr 27 2018 vtrgb -> /etc/alternatives/vtrgb
-rw-r--r-- 1 root root 4942 Feb 5 2018 wgetrc
drwxr-xr-x 2 root root 4096 Jan 20 2019 wildmidi
drwxr-xr-x 2 root root 4096 Aug 18 20:26 wpa_supplicant
drwxr-xr-x 11 root root 4096 Jan 20 2019 X11
drwxr-xr-x 5 root root 4096 Apr 29 2018 xdg
-rw-r--r-- 1 root root 477 Mar 16 2018 zsh_command_not_found
len@len-Satellite-E45t-A:/etc$ cd resolvconf/
len@len-Satellite-E45t-A:/etc/resolvconf$ ls -al
total 20
drwxr-xr-x 3 root root 4096 Apr 26 2018 .
drwxr-xr-x 139 root root 12288 Sep 12 05:56 ..
drwxr-xr-x 2 root root 4096 Feb 6 2019 update-libc.d
len@len-Satellite-E45t-A:/etc/resolvconf$ cd update-libc.d/
len@len-Satellite-E45t-A:/etc/resolvconf/update-libc.d$ ls -al
total 12
drwxr-xr-x 2 root root 4096 Feb 6 2019 .
drwxr-xr-x 3 root root 4096 Apr 26 2018 ..
-rwxr-xr-x 1 root root 249 Feb 2 2018 avahi-daemon
len@len-Satellite-E45t-A:/etc/resolvconf/update-libc.d$ cat avahi-daemon
#!/bin/sh
#
# If we have an unicast .local domain, we immediately disable avahi to avoid
# conflicts with the multicast IP4LL .local domain
if [ -x /usr/lib/avahi/avahi-daemon-check-dns.sh ]; then
exec /usr/lib/avahi/avahi-daemon-check-dns.sh
fi
len@len-Satellite-E45t-A:/etc/resolvconf/update-libc.d$
09-12-2019, 02:07 PM
#19
Moderator
Registered: Aug 2002
Posts: 25,700
Quote:
lrwxrwxrwx 1 root root 27 Sep 10 22:46 resolv.conf -> /run/resolvconf/resolv.conf
Yes, that is your resolv.conf file. It just happens to be a link to another file in another directory but it does exist. Please post its contents.
09-12-2019, 02:10 PM
#20
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
ok
Code:
history | grep sudo
will give us an idea of what was edited/installed/done
do you remember doing anything to /etc/resolv.conf?
like "ln -sf ../run/resolvconf/resolv.conf /etc/resolv.conf"
that would explain the dangling link
and
Code:
sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
would restore it to Ubuntu18's default
if you installed ifupdown, you can remove that
Code:
sudo apt purge ifupdown
you can also undo the changes made to /etc/network/interfaces
the default is
Code:
# ifupdown has been replaced by netplan(5) on this system. See
# /etc/netplan for current configuration.
# To re-enable ifupdown on this system, you can run:
# sudo apt install ifupdown
essentially it is empty
09-12-2019, 03:52 PM
#21
Member
Registered: May 2018
Location: Greenwood, IN
Distribution: antiX
Posts: 151
Original Poster
Rep:
Firerat, well, guess what? I am online in Linux! All I did was fix the link, as you suggested:
Code:
sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
That did the trick.
Now, you have asked some other questions, which I would be happy to answer for you, as you have been so kind and helpful to me. Let me know if you do.
Now, the acid test: After rebooting, will I still connect to the Internet?
09-12-2019, 04:05 PM
#22
Member
Registered: May 2018
Location: Greenwood, IN
Distribution: antiX
Posts: 151
Original Poster
Rep:
It does indeed connect to the Internet after a reboot. Hurray! Thanks so much for your help, Firerat and michaelk. Of course, I would have had to a complete reinstall to get it working again. Now, at least I have a little better understaning of networking on Linux.
09-12-2019, 04:09 PM
#23
Senior Member
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683
Quote:
Originally Posted by
coderlen
Firerat, well, guess what? I am online in Linux! All I did was fix the link, as you suggested:
Code:
sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
That did the trick.
Now, you have asked some other questions, which I would be happy to answer for you, as you have been so kind and helpful to me. Let me know if you do.
Now, the acid test: After rebooting, will I still connect to the Internet?
Woot
nah, the other questions would have been to do with "history | grep sudo"
that was just to see what had been done, basically to undo them.
09-12-2019, 10:23 PM
#24
Member
Registered: May 2018
Location: Greenwood, IN
Distribution: antiX
Posts: 151
Original Poster
Rep:
michaelk, that was an excellent article you recommended, although it was a iittle above my head. Thanks for your posts.
Firerat, your patience and many posts are greatly appreciated. You really got me out of a jam. Thanks so much.
1 members found this post helpful.
All times are GMT -5. The time now is 12:02 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News