It looks like your system is in a somewhat broken state, but the thing
that broke it isn't in this bug.

> error running python rtupdate hook apt-xapian-index

The python3 update is trying to update the byte-compilation for apt-
xapian-index, because the file /usr/share/python3/runtime.d/apt-xapian-
index.rtupdate is telling it to.

But apt-xapian-index isn't installed. If it isn't installed, that file
shouldn't exist.

So, something has got your installed-package state out of sync with the
files on your disk. That shouldn't happen, and I don't know how it would
have happened.

You can delete these rtupdate files, for packages that aren't installed,
but who knows what else is wrong with your system...

** Changed in: python3-defaults (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to python3-defaults in
Ubuntu.
https://bugs.launchpad.net/bugs/2113914

Title:
  package python3 3.13.4-1 failed to install/upgrade: installed python3
  package post-installation script subprocess returned error exit status
  4

Status in python3-defaults package in Ubuntu:
  Invalid

Bug description:
  Ubuntu 25.10/questing python3 problem with normal updates

  ** description

  about three times per day I run the following

  > snap refresh;apt update; apt autoremove ; apt autoclean ; apt full-
  upgrade ; fastfetch

  to update this system, i have package issues (again, not the first
  time this cycle; though also experienced this late in the plucky
  cycle)

  Current install was made using

  root@d7050-next:~#   cat /var/log/installer/media-info 
  Lubuntu 25.10 "Questing Quokka" - Daily amd64 (20250603)

  so this isn't an old install; but issue seems to keep re-occurring

  ** apt -f install output

  
  root@d7050-next:~#   apt -f install
  Summary:                        
    Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
    3 not fully installed or removed.
    Space needed: 0 B / 4,361 MB available

  Setting up python3 (3.13.4-1) ...
  running python rtupdate hooks for python3.13...
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of apt-xapian-index
  error running python rtupdate hook apt-xapian-index
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of byobu
  error running python rtupdate hook byobu
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of dput
  error running python rtupdate hook dput
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of gdebi-core
  error running python rtupdate hook gdebi-core
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of gdebi
  error running python rtupdate hook gdebi
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of khelpcenter
  error running python rtupdate hook khelpcenter
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of libgio-2.0-dev-bin
  error running python rtupdate hook libgio-2.0-dev-bin
  Traceback (most recent call last):
    File "/usr/bin/py3clean", line 209, in <module>
      main()
      ~~~~^^
    File "/usr/bin/py3clean", line 195, in main
      pfiles = set(dpf.from_package(options.package))
    File "/usr/share/python3/debpython/files.py", line 55, in from_package
      raise Exception("cannot get content of %s" % package_name)
  Exception: cannot get content of plasma-workspace-data
  error running python rtupdate hook plasma-workspace-data
  /usr/lib/rhythmbox/plugins/alternative-toolbar/alttoolbar_plugins.py:171: 
SyntaxWarning: invalid escape sequence '
  \('
    translation = re.sub('\(..\)', '', translation, flags=re.DOTALL)
  dpkg: error processing package python3 (--configure):
   installed python3 package post-installation script subprocess returned error 
exit status 4
  dpkg: dependency problems prevent configuration of python3-bs4:
   python3-bs4 depends on python3:any; however:
    Package python3 is not configured yet.

  dpkg: error processing package python3-bs4 (--configure):
   dependency problems - leaving unconfigured
  dpkg: dependency problems prevent configuration of ubuntu-minimal:
   ubuntu-minimal depends on python3; however:
    Package python3 is not configured yet.

  dpkg: error processing package ubuntu-minimal (--configure):
   dependency problems - leaving unconfigured
  No apport report written because the error message indicates its a followup 
error from a previous failure.
                                                                                
                            No appor
  t report written because the error message indicates its a followup error 
from a previous failure.
                                                                                
                    dpkg: dependency
   problems prevent processing triggers for gnome-menus:
   gnome-menus depends on python3:any; however:
    Package python3 is not configured yet.

  dpkg: error processing package gnome-menus (--configure):
   dependency problems - leaving triggers unprocessed
  No apport report written because MaxReports is reached already
                                                                Errors were 
encountered while processing:
   python3
   python3-bs4
   ubuntu-minimal
   gnome-menus
  libdvd-pkg: Package libdvdcss2-1.4.3-1 was removed, stop processing...
  Notice: Ignoring file 'google-chrome.alt_sources' in directory 
'/etc/apt/sources.list.d/' as it has an invalid filename extension
  Error: Sub-process /usr/bin/dpkg returned an error code (1)

  
  ** details of install

  this install was made with lubuntu media; package dep clashes
  (initramfs/dracut from memory) caused me to to skip adding xubuntu-
  desktop; but in time I added ubuntu-desktop to system.. two days later
  I have package issues (that I noticed)

  I don't believe I've done anything to cause this; but this is at least
  the fifth time I've experienced this since April 2025.  Re-install the
  system and no issues; yet python3 type change occurs & problems
  again??  (alas as fastfetch is run instead of neofetch (more lines of
  output) I'm less likely to notice errors that scroll up off my usual
  window where I perform updates).

  ProblemType: Package
  DistroRelease: Ubuntu 25.10
  Package: python3 3.13.4-1
  ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
  Uname: Linux 6.14.0-15-generic x86_64
  ApportVersion: 2.33.0-0ubuntu1
  Architecture: amd64
  CasperMD5CheckResult: pass
  Date: Wed Jun 11 10:43:21 2025
  ErrorMessage: installed python3 package post-installation script subprocess 
returned error exit status 4
  InstallationDate: Installed on 2025-06-04 (7 days ago)
  InstallationMedia: Lubuntu 25.10 "Questing Quokka" - Daily amd64 (20250603)
  Python3Details: /usr/bin/python3.13, Python 3.13.4, python3-minimal, 3.13.4-1
  PythonDetails: N/A
  RebootRequiredPkgs: Error: path contained symlinks.
  RelatedPackageVersions:
   dpkg 1.22.18ubuntu3
   apt  3.1.0ubuntu3
  SourcePackage: python3-defaults
  Title: package python3 3.13.4-1 failed to install/upgrade: installed python3 
package post-installation script subprocess returned error exit status 4
  UpgradeStatus: Upgraded to questing on 2024-11-01 (222 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/2113914/+subscriptions


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

Reply via email to