https://bugs.kde.org/show_bug.cgi?id=494762

            Bug ID: 494762
           Summary: upgrade to 24.04 failed
    Classification: KDE Neon
           Product: neon
           Version: unspecified
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Packages Unstable Edition
          Assignee: neon-b...@kde.org
          Reporter: piotr.mierzwin...@gmail.com
                CC: j...@jriddell.org, neon-b...@kde.org
  Target Milestone: ---

SUMMARY
I met error like below:
<cut>
localuser:root being added to access control list
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Error in function pulse
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py",
line 216, in pulse
    self.dialog.installationProgress.setValue(
TypeError: setValue(self, value: int): argument 1 has unexpected type 'float'
Error in function pulse
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py",
line 216, in pulse
    self.dialog.installationProgress.setValue(
TypeError: setValue(self, value: int): argument 1 has unexpected type 'float'
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Unit packagekit.socket does not exist, proceeding anyway.
Created symlink /run/systemd/system/packagekit.socket → /dev/null.
Created symlink /run/systemd/system/packagekit.service → /dev/null.
Failed to start apt-news.service: Unit apt-news.service not found.
Failed to start esm-cache.service: Unit esm-cache.service not found.
Failed to start apt-news.service: Unit apt-news.service not found.
Failed to start esm-cache.service: Unit esm-cache.service not found.
Failed to start apt-news.service: Unit apt-news.service not found.
Failed to start esm-cache.service: Unit esm-cache.service not found.
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit packagekit.service
is masked.
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit packagekit.service
is masked.
Error: GDBus.Error:org.freedesktop.systemd1.UnitMasked: Unit packagekit.service
is masked.
error: cannot list snaps: cannot communicate with server: Get
"http://localhost/v2/snaps": dial unix /run/snapd.socket: connect: no such file
or directory
exitMainLoopMidFlight
Traceback (most recent call last):
  File "/tmp/neon-release-upgrader-4mx0yzna/noble", line 8, in <module>
    sys.exit(main())
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeMain.py",
line 241, in main
    if app.run():
  File
"/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeController.py",
line 2662, in run
    return self.fullUpgrade()
  File
"/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeController.py",
line 2467, in fullUpgrade
    if not self.doPostInitialUpdate():
  File
"/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeController.py",
line 1438, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeQuirks.py",
line 105, in run
    func()
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeQuirks.py",
line 130, in noblePostInitialUpdate
    self._test_and_fail_on_tpm_fde()
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeQuirks.py",
line 1921, in _test_and_fail_on_tpm_fde
    snap_list = subprocess.check_output(['snap', 'list'])
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'list']' returned non-zero
exit status 1.
Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeViewKDE.py",
line 730, in _handleException
    str(run_apport()), str(ran_apport))
NameError: name 'ran_apport' is not defined. Did you mean: 'run_apport'?

Original exception was:
Traceback (most recent call last):
  File "/tmp/neon-release-upgrader-4mx0yzna/noble", line 8, in <module>
    sys.exit(main())
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeMain.py",
line 241, in main
    if app.run():
  File
"/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeController.py",
line 2662, in run
    return self.fullUpgrade()
  File
"/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeController.py",
line 2467, in fullUpgrade
    if not self.doPostInitialUpdate():
  File
"/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeController.py",
line 1438, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeQuirks.py",
line 105, in run
    func()
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeQuirks.py",
line 130, in noblePostInitialUpdate
    self._test_and_fail_on_tpm_fde()
  File "/tmp/neon-release-upgrader-4mx0yzna/DistUpgrade/DistUpgradeQuirks.py",
line 1921, in _test_and_fail_on_tpm_fde
    snap_list = subprocess.check_output(['snap', 'list'])
  File "/usr/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['snap', 'list']' returned non-zero
exit status 1.
Removed /run/systemd/system/packagekit.service.
Removed /run/systemd/system/packagekit.socket.
</cut>

I terminal (konsole) I run: 
$ echo $XDG_RUNTIME_DIR
/run/user/1000

$ stat /run/user/1000
  File: /run/user/1000
  Size: 500             Blocks: 0          IO Block: 4096   directory
Device: 37h/55d Inode: 1           Links: 14
Access: (0700/drwx------)  Uid: ( 1000/   piotr)   Gid: ( 1001/   piotr)
Access: 2024-10-14 20:25:43.014412245 +0200
Modify: 2024-10-14 18:06:11.789112947 +0200
Change: 2024-10-14 18:06:11.789112947 +0200
 Birth: 2024-10-14 18:01:49.115002280 +0200


STEPS TO REPRODUCE
1. Update system
2. Click into "Upgrade available" in notification window
3. 

OBSERVED RESULT
upgrade failed with error like above

EXPECTED RESULT
upgrade finished with success

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.7.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to