Update from 8 to 9 - no internet connection
- Login o registrati per inviare commenti
Hi
I updated from Trisquel 8 to 9 last night using "sudo do-release-upgrade -d"
During the update it asked something about keeping a network config/settings file or updating to the new one and I chose to keep the old one as it said this was the default option. Now I cannot get any internet traffic. I can connect to my router fine but abrowser won't allow me to connect to sites and apt update won't connect. Neither wifi nor ethernet works. However I can access websites through tor using the tor browser. I have no issues connecting with my dual boot of Trisquel 7.
It sounds like the settings file but I'm not sure where that is or how to update. Any help would be massively appreciated.
Thanks
Pete
It's unadvisable to upgrade a package but keep older version's configuration file. Chances are they were no longer compatible, especially when the package suggests the configuration file(s) should be upgraded.
My suggestion is to study the change log between two versions and figure out what changes need be made to the configuration file. Then you can manually upgrade the configuration file to work with newer version.
Yes I'm beginning to realise that now! Big mistake.
I'm not sure which file I need to be updating/where to find it.
Try to execute in a terminal:
$ ping 209.51.188.148
$ ping gnu.org
Type Ctrl+C to stop every ping after a few seconds. If ping reports 100% packet loss in the second case but not in the first case, it is probably a DNS problem.
Thanks for your help
The first reported 0% packet loss.
The second reported "ping: gnu.org: Name or service not known"
It should indeed be a DNS problem. Checking /etc/resolv.conf on my system (to try to understand how DNS works nowadays), I accidently removed it... I believe it should be a symbolic link to /run/systemd/resolve/stub-resolv.conf (that is the "fix" I applied) but would like a confirmation from somebody who would give the output of:
$ ls -l /etc/resolv.conf
On my system that file contains, after comments:
nameserver 127.0.0.53
options edns0
search home
And on yours? And in the "DNS" tab of the "Network Settings"?
OK so I deleted resolv.conf and rebooted and now everything works!
This is the full contents of the file now:
# Generated by NetworkManager
search home
nameserver 127.0.1.1
When I run "sudo ls -l /etc/resolv.conf" it returns:
-rw-r--r-- 1 root root 63 Dec 1 17:44 /etc/resolv.conf
The DNS tab of Network settings has 127.0.1.1 under "DNS Servers" and home under "Search domains" now. Previously it was a 127.0.0.53 DNS server address and blank under domains. 127.0.1.1 is the same DNS address used on my Trisquel 7 boot.
I really don't understand this stuff but it all seems to work fine now so thanks very much for pointing me in the right direction!
Pete
If you haven't installed the package "resolvconf", then you could manually edit the /etc/resolv.conf file:
SUDO_EDITOR=pluma sudoedit /etc/resolv.conf
(We assume that you use the MATE desktop environment that come with Trisquel 8/9. If it's not the case, replace "pluma" with any preferred editor.)
Change the "nameserver" field value to the default 127.0.0.53, which is used by systemd-resolved. Then restart network manager:
sudo systemctl restart NetworkManager
It should work.
You probably used some other DNS software than systemd-resolved, and it's no longer available after upgrading to Trisquel 9.
Whenever I do a fresh install of a Trisquel distro, I suffer through the original download that
the installer wants to do, usually from an old flash drive. Before rebooting, I make sure to
change the mirror site (as described above) by telling Software Updater to pick the best source.
Nevertheless, Software Updater has always insisted on updating its menu of items to download
before it's proceeded. Be sure not to skip that update; that's what we're told to do anyway:
Run sudo apt-grade update always before running sudo apt-get upgrade.
- Login o registrati per inviare commenti