*** 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 Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/2055012

Title:
  When I upgraded from 22.04 to 24.04, DNS resolution went wrong.

Status in network-manager package in Ubuntu:
  Invalid
Status in systemd package in Ubuntu:
  Confirmed
Status in ubuntu-release-upgrader package in Ubuntu:
  Confirmed

Bug description:
  I was an unpatient idiot, and I upgraded from 22.04 to 24.04. Near to
  the end of the upgrade, I got an „Oh, no! Something has gone wrong and
  the system cannot recover. Call the system administrator” message
  after a red FAILED in the terminal. The system administrator is
  myself, because my computer is a personal one. Hard reset, same error,
  Ctrl+Alt+F3, sudo apt reinstall gdm3. Obviously. I needed to finish
  the update with dpkg. While dpkg was upgrading, it printed an error
  message for every WiFi connection:

  „[Failed] Failed to migrate [I do not remember, something with
  /etc/netplan]”

  It took at least one and a half hour to find the solution on Ask
  Ubuntu. The problem was: /etc/resolv.conf became a broken link, along
  with systemd-resolve.service. I needed to remove both of them and
  write a new resolv.conf to fix the error.

  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: network-manager 1.45.90-1ubuntu1
  ProcVersionSignature: Ubuntu 6.6.0-14.14-generic 6.6.3
  Uname: Linux 6.6.0-14-generic x86_64
  ApportVersion: 2.28.0-0ubuntu1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Feb 26 08:21:02 2024
  InstallationDate: Installed on 2023-07-05 (236 days ago)
  InstallationMedia: Ubuntu 20.04.6 LTS "Focal Fossa" - Release amd64 (20230316)
  IpRoute:
   default via 192.168.0.1 dev wlp3s0 proto dhcp src 192.168.0.100 metric 600
   192.168.0.0/24 dev wlp3s0 proto kernel scope link src 192.168.0.100 metric 
600
   192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1 
linkdown
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  RfKill:
   0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no
  SourcePackage: network-manager
  UpgradeStatus: Upgraded to noble on 2024-02-24 (2 days ago)
  modified.conffile..etc.init.d.apport: [modified]
  mtime.conffile..etc.init.d.apport: 2024-02-22T15:20:00
  nmcli-nm:
   RUNNING  VERSION  STATE      STARTUP  CONNECTIVITY  NETWORKING  WIFI-HW  
WIFI     WWAN-HW  WWAN
   running  1.45.90  connected  started  full          enabled     enabled  
enabled  missing  enabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to