*** This bug is a duplicate of bug 2054761 *** https://bugs.launchpad.net/bugs/2054761
Same issue occurred for me today on upgrade from 22.04 to 24.04. There was some error during the initial upgrade, causing it to exit and it had to be resumed. After the upgrade completed, `/etc/resolv.conf/` was linked to `/run/systemd/resolve/stub-resolv.conf` however this file did not exist. The package `systemd-resolved` was not installed or marked for installation. To fix this, I installed the package resulting in `/run/systemd/resolve/stub-resolv.conf` being generated, and after a `sudo systemctl restart NetworkManager.service` DNS resolution worked again. Here is what I see in the relevant `main.log`: ``` 2024-09-19 19:15:49,942 DEBUG Disabling systemd-resolved stub resolver during upgrade 2024-09-19 19:15:50,112 DEBUG apt btrfs snapshots supported: False 2024-09-19 19:15:50,112 INFO cache.commit() 2024-09-20 15:46:53,054 ERROR got an error from dpkg for pkg: '/tmp/apt-dpkg-install-hysakR/32-firefox_1%3a1snap1-0ubuntu5_amd64.deb': 'new firefox package pre-installation script subprocess returned error exit status 1' 2024-09-20 15:46:53,055 DEBUG running apport_pkgfailure() firefox: new firefox package pre-installation script subprocess returned error exit status 1 2024-09-20 15:46:58,303 ERROR Exception during pm.DoInstall() Traceback (most recent call last): File "/tmp/ubuntu-release-upgrader-mkvb_fzo/DistUpgrade/DistUpgradeView.py", line 220, in run res = pm.do_install(self.writefd) apt_pkg.Error: E:Sub-process /usr/bin/dpkg returned an error code (1) 2024-09-20 15:46:58,333 ERROR SystemError from cache.commit(): installArchives() failed 2024-09-20 15:46:58,333 ERROR found exception: 'E:Sub-process /usr/bin/dpkg returned an error code (1)' 2024-09-20 15:47:00,255 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py' 2024-09-20 15:47:00,286 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/convert_list_to_deb822.py' 2024-09-20 15:47:00,502 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/upgrade_lts_contract.py' ``` So it seems like there was an unrelated error with the Firefox snap installer. Perhaps the underlying problem is that `systemd-resolved` is not properly reconfigured after upgrade errors? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/2055012 Title: When I upgraded from 22.04 to 24.04, DNS resolution went wrong. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs