qdbus-qt5 crashing upgrade from 17.10 -> 18.04

Asked by doctordruidphd

I am trying to upgrade kubuntu 17.10 to 18.04. The upgrade is halting and crashing with the following errors:

Errors were encountered while processing:
/tmp/user/0/apt-dpkg-install-yMiE22/0-qmlscene_5.9.4-0ubuntu1_amd64.deb
/tmp/user/0/apt-dpkg-install-yMiE22/1-qt5-qmake-bin_5.9.4+dfsg-0ubuntu4_amd64.deb
/tmp/user/0/apt-dpkg-install-yMiE22/2-qttools5-dev-tools_5.9.4-0ubuntu1_amd64.deb
/tmp/user/0/apt-dpkg-install-yMiE22/3-qtbase5-dev-tools_5.9.4+dfsg-0ubuntu4_amd64.deb
/tmp/user/0/apt-dpkg-install-yMiE22/4-qt5-assistant_5.9.4-0ubuntu1_amd64.deb
/tmp/user/0/apt-dpkg-install-yMiE22/5-qdbus-qt5_5.9.4-0ubuntu1_amd64.deb

I tried removing/purging all of these packages prior to upgrading, and the upgrade works, but I cannot install plasma-desktop because it crashes while trying to install qdbus-qt5.

root@Crynfyd:/# dpkg -i /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb
(Reading database ... 839516 files and directories currently installed.)
Preparing to unpack .../qdbus-qt5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking qdbus-qt5 (5.9.5-0ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb (--install):
unable to open '/usr/lib/qt5/bin/qdbus.dpkg-new': No such file or directory
Errors were encountered while processing:
/var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb

So it goes for the other qt files mentioned above -- it is crashing because it can't find files that don't exist. I tried "touching" the relevant files, but the install procedure evidently erases the files before it looks for them.

As an experiment, I tried removing/purging qdbus-qt5 from 17.10, then reinstalling it, and it works -- version qdbus-qt5_5.9.1-2_amd64.deb. But if I try to do a force-install of qdbus-qt5_5.9.5-0ubuntu1_amd64.deb BEFORE doing the upgrade, it still fails with the same problem:

root@Crynfyd:/var/cache/apt/archives# dpkg -i --force-depends qdbus-qt5_5.9.5-0ubuntu1_amd64.deb
(Reading database ... 781393 files and directories currently installed.)
Preparing to unpack qdbus-qt5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking qdbus-qt5 (5.9.5-0ubuntu1) over (5.9.1-2) ...
dpkg: error processing archive qdbus-qt5_5.9.5-0ubuntu1_amd64.deb (--install):
 unable to install new version of '/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus': No such file or directory
Errors were encountered while processing:
 qdbus-qt5_5.9.5-0ubuntu1_amd64.deb

Fails exactly the same way either before the upgrade to 18.04, or after. Is this a problem with the install script that can be fixed?
"Fresh install" is not a reasonable option.

Thanks for any help.

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu qttools-opensource-src Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the following commands:

uname -a
lsb_release -crid
sudo dpkg --audit
apt-cache policy qdbus-qt5

I am astonished to see version 5.9.4-0ubuntu1 mentioned in your output; this version has already been superseded by 5.9.5-0ubuntu1

Revision history for this message
doctordruidphd (doctordruidphd) said :
#2

Thanks for your reply.
I have already deleted the failed upgrade system. I will run the upgrade again and provide this information, though it may take a day or two to run it all. Note that I have done this several times, always with the same result.
I tried it with both 5.94 and 5.95 -- same problem.

Revision history for this message
doctordruidphd (doctordruidphd) said :
#3

Here is the information requested.

First, running on 17.10 BEFORE the upgrade:

<email address hidden> ~$ uname -a
Linux Crynfyd 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

<email address hidden> ~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 17.10
Release: 17.10
Codename: artful

<email address hidden> ~$ sudo dpkg --audit

<email address hidden> ~$ apt-cache policy qdbus-qt5
qdbus-qt5:
  Installed: 5.9.1-2
  Candidate: 5.9.1-2
  Version table:
 *** 5.9.1-2 500
        500 http://us.archive.ubuntu.com/ubuntu artful/universe amd64 Packages
        100 /var/lib/dpkg/status

-------------------------------------------------------------

Now running on 18.04 AFTER the (failed) upgrade:

<email address hidden> ~$ uname -a
Linux Crynfyd 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
<email address hidden> ~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 18.04 LTS
Release: 18.04
Codename: bionic
<email address hidden> ~$ sudo dpkg --audit
[sudo] password for greenman:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 ardour the digital audio workstation
 ardour-data digital audio workstation (data)
 bluez Bluetooth tools and daemons
 ca-certificates Common CA certificates
 console-setup console font and keymap setup program
 console-setup-linux Linux specific part of console-setup
 db5.3-util Berkeley v5.3 Database Utilities
 freetype2-demos FreeType 2 demonstration programs
 friendly-recovery Make recovery boot mode more user-friendly
 gnome-desktop3-data Common files for GNOME desktop apps
 gnome-session-bin GNOME Session Manager - Minimal runtime
 grub-common GRand Unified Bootloader (common files)
 grub-pc GRand Unified Bootloader, version 2 (PC/BIOS version)
 grub-pc-bin GRand Unified Bootloader, version 2 (PC/BIOS binaries)
 grub2-common GRand Unified Bootloader (common files for version 2)
 initramfs-tools generic modular initramfs generator (automation)
 initramfs-tools-core generic modular initramfs generator (core tools)
 kbd Linux console font and keytable utilities
 kde-style-qtcurve-qt5:amd64 QtCurve widget style for applications based on Qt 5.x
 klibc-utils small utilities built with klibc for early boot
 libanalitzagui8 library to work with mathematical expressions - GUI routi
 libanalitzaplot8 library to work with mathematical expressions - plotting
 libavcodec-dev:amd64 FFmpeg library with de/encoders for audio/video codecs -
 libavcodec-extra57:amd64 FFmpeg library with additional de/encoders for audio/vide
 libavdevice57:amd64 FFmpeg library for handling input and output devices - ru
 libavfilter6:amd64 FFmpeg library containing media filters - runtime files
 libavformat-dev:amd64 FFmpeg library with (de)muxers for multimedia containers
 libavformat57:amd64 FFmpeg library with (de)muxers for multimedia containers
 libavresample-dev:amd64 FFmpeg compatibility library for resampling - development
 libavresample3:amd64 FFmpeg compatibility library for resampling - runtime fil
 libavutil-dev:amd64 FFmpeg library with functions for simplifying programming
 libavutil55:amd64 FFmpeg library with functions for simplifying programming
 libb-hooks-op-check-perl Perl wrapper for OP check callbacks
 libc-dev-bin GNU C Library: Development binaries
 libc6-dev:amd64 GNU C Library: Development Libraries and Header Files
 libc6-dev-i386 GNU C Library: 32-bit development libraries for AMD64
 libc6-dev-x32 GNU C Library: X32 ABI Development Libraries for AMD64
 libcairo-gobject2:amd64 Cairo 2D vector graphics library (GObject library)
 libcairo-gobject2:i386 Cairo 2D vector graphics library (GObject library)
 libcairo-script-interpreter2:amd64 Cairo 2D vector graphics library (script interpre
 libcairo2:amd64 Cairo 2D vector graphics library
 libcairo2:i386 Cairo 2D vector graphics library
 libcairo2-dev:amd64 Development files for the Cairo 2D graphics library
 libcdio-cdda2:amd64 library to read and control digital audio CDs
 libcdio-paranoia2:amd64 library to read digital audio CDs with error correction
 libcdio17:amd64 library to read and control CD-ROM
 libcgi-fast-perl CGI subclass for work with FCGI
 libcgi-pm-perl module for Common Gateway Interface applications
 libclass-c3-perl pragma for using the C3 method resolution order
 libclass-inspector-perl Perl module that provides information about classes
 libclass-xsaccessor-perl Perl module providing fast XS accessors
 libcommon-sense-perl module that implements some sane defaults for Perl progra
 libcryptsetup12:amd64 disk encryption support - shared library
 libdatetime-locale-perl Perl extension providing localization support for Date
 libdatetime-perl module for manipulating dates, times and timestamps
 libdatetime-timezone-perl framework exposing the Olson time zone database to P
 libdevel-callchecker-perl custom op checking attached to subroutines
 libdevel-stacktrace-perl Perl module containing stack trace and related object
 libdrm-amdgpu1:amd64 Userspace interface to amdgpu-specific kernel DRM service
 libdrm-amdgpu1:i386 Userspace interface to amdgpu-specific kernel DRM service
 libdrm-dev:amd64 Userspace interface to kernel DRM services -- development
 libdrm-intel1:amd64 Userspace interface to intel-specific kernel DRM services
 libdrm-intel1:i386 Userspace interface to intel-specific kernel DRM services
 libdrm-nouveau2:amd64 Userspace interface to nouveau-specific kernel DRM servic
 libdrm-nouveau2:i386 Userspace interface to nouveau-specific kernel DRM servic
 libdrm-radeon1:amd64 Userspace interface to radeon-specific kernel DRM service
 libdrm-radeon1:i386 Userspace interface to radeon-specific kernel DRM service
 libdrm2:amd64 Userspace interface to kernel DRM services -- runtime
 libdrm2:i386 Userspace interface to kernel DRM services -- runtime
 libdynaloader-functions-perl deconstructed dynamic C library loading
 libegl-mesa0:i386 free implementation of the EGL API -- Mesa vendor library
 libegl1-mesa-dev:amd64 free implementation of the EGL API -- development files
 libexception-class-perl module that allows you to declare real exception class
 libffi-dev:amd64 Foreign Function Interface library (development files)
 libffi6:amd64 Foreign Function Interface library runtime
 libffi6:i386 Foreign Function Interface library runtime
 libfile-sharedir-perl module to locate non-code files during run-time
 libfinance-quote-perl Perl module for retrieving stock quotes from a variety o
 libfontconfig1:amd64 generic font configuration library - runtime
 libfontconfig1:i386 generic font configuration library - runtime
 libfontconfig1-dev:amd64 generic font configuration library - development
 libfreetype6-dev:amd64 FreeType 2 font engine, development files
 libgcrypt20-dev LGPL Crypto library - development files
 libgdbm-compat4:amd64 GNU dbm database routines (legacy support runtime version
 libgl1:amd64 Vendor neutral GL dispatch library -- legacy GL support
 libgl1:i386 Vendor neutral GL dispatch library -- legacy GL support
 libgl1-mesa-dev:amd64 free implementation of the OpenGL API -- GLX development
 libgl1-mesa-glx:amd64 transitional dummy package
 libgl1-mesa-glx:i386 transitional dummy package
 libgles2:amd64 Vendor neutral GL dispatch library -- GLES support
 libgles2-mesa:amd64 transitional dummy package
 libgles2-mesa-dev:amd64 free implementation of the OpenGL|ES 2.x API -- developme
 libglvnd-core-dev:amd64 Vendor neutral GL dispatch library -- core development fi
 libglvnd-dev:amd64 Vendor neutral GL dispatch library -- development files
 libglx-mesa0:amd64 free implementation of the OpenGL API -- GLX vendor libra
 libglx-mesa0:i386 free implementation of the OpenGL API -- GLX vendor libra
 libglx0:amd64 Vendor neutral GL dispatch library -- GLX support
 libglx0:i386 Vendor neutral GL dispatch library -- GLX support
 libgnome-desktop-3-17:amd64 Utility library for loading .desktop files - runtime fil
 libhtml-template-perl module for using HTML templates with Perl
 libhtml-tree-perl Perl module to represent and create HTML syntax trees
 libhttp-cookies-perl HTTP cookie jars
 libhttp-message-perl perl interface to HTTP style messages
 libicu60:amd64 International Components for Unicode
 libicu60:i386 International Components for Unicode
 libjavascriptcoregtk-1.0-0:amd64 JavaScript engine library from WebKitGTK+
 libkf5declarative5:amd64 provides integration of QML and KDE frameworks
 libkf5xmlgui5:amd64 User configurable main windows.
 libmodule-runtime-perl Perl module for runtime module handling
 libmp3lame-dev:amd64 MP3 encoding library (development)
 libmro-compat-perl mro::* interface compatibility for Perls < 5.9.5
 libmysofa0:amd64 library to read HRTFs stored in the AES69-2015 SOFA forma
 libnet-http-perl module providing low-level HTTP connection client
 libnss-resolve:amd64 nss module to resolve names via systemd-resolved
 libosmesa6:amd64 Mesa Off-screen rendering extension
 libosmesa6:i386 Mesa Off-screen rendering extension
 libpam-systemd:amd64 system and service manager - PAM module
 libpam0g-dev:amd64 Development files for PAM
 libparams-classify-perl Perl module for argument type classification
 libparams-validationcompiler-perl module to build an optimized subroutine para
 libpcre16-3:amd64 Old Perl 5 Compatible Regular Expression Library - 16 bit
 libpcre3-dev:amd64 Old Perl 5 Compatible Regular Expression Library - develo
 libpcre32-3:amd64 Old Perl 5 Compatible Regular Expression Library - 32 bit
 libpcrecpp0v5:amd64 Old Perl 5 Compatible Regular Expression Library - C++ ru
 libperl5.26:amd64 shared Perl library
 libpostproc54:amd64 FFmpeg library for post processing - runtime files
 libpython3.6:amd64 Shared Python runtime library (version 3.6)
 libpython3.6-dev:amd64 Header files and a static library for Python (v3.6)
 libqt5dbus5:amd64 Qt 5 D-Bus module
 libqt5designer5:amd64 Qt 5 designer module
 libqt5location5:amd64 Qt Location module
 libqt5multimedia5:amd64 Qt 5 Multimedia module
 libqt5multimedia5-plugins:amd64 Qt 5 Multimedia module plugins
 libqt5network5:amd64 Qt 5 network module
 libqt5opengl5:amd64 Qt 5 OpenGL module
 libqt5positioning5:amd64 Qt Positioning module
 libqt5printsupport5:amd64 Qt 5 print support module
 libqt5qml5:amd64 Qt 5 QML module
 libqt5quick5:amd64 Qt 5 Quick library
 libqt5quickcontrols2-5:amd64 Qt 5 Quick Controls 2 library
 libqt5quickparticles5:amd64 Qt 5 Quick particles module
 libqt5quicktemplates2-5:amd64 Qt 5 Quick Templates 2 library
 libqt5quicktest5:amd64 Qt 5 Quick Test library
 libqt5quickwidgets5:amd64 Qt 5 Quick Widgets library
 libqt5scripttools5:amd64 Qt 5 script tools module
 libqt5serialport5:amd64 Qt 5 serial port support
 libqt5sql5:amd64 Qt 5 SQL module
 libqt5sql5-mysql:amd64 Qt 5 MySQL database driver
 libqt5sql5-sqlite:amd64 Qt 5 SQLite 3 database driver
 libqt5svg5:amd64 Qt 5 SVG module
 libqt5svg5-dev:amd64 Qt 5 SVG module development files
 libqt5waylandclient5:amd64 QtWayland client library
 libqt5waylandcompositor5:amd64 QtWayland compositor library
 libqt5webchannel5:amd64 Web communication library for Qt
 libqt5webengine5:amd64 Web content engine library for Qt
 libqt5webenginecore5:amd64 Web content engine library for Qt - Core
 libqt5webenginewidgets5:amd64 Web content engine library for Qt - Widget
 libqt5webkit5:amd64 Web content engine library for Qt
 libqt5websockets5:amd64 Qt 5 Web Sockets module
 libqt5widgets5:amd64 Qt 5 widgets module
 libqt5xml5:amd64 Qt 5 XML module
 libqt5xmlpatterns5:amd64 Qt 5 XML patterns module
 libre2-4:amd64 efficient, principled regular expression library
 librole-tiny-perl Perl module for minimalist role composition
 librubberband2:amd64 audio time-stretching and pitch-shifting library
 libscalar-list-utils-perl modules providing common scalar and list utility sub
 libsdl2-2.0-0:amd64 Simple DirectMedia Layer
 libsdl2-dev:amd64 Simple DirectMedia Layer development files
 libselinux1-dev:amd64 SELinux development headers
 libspecio-perl Perl module providing type constraints and coercions
 libssl1.1:amd64 Secure Sockets Layer toolkit - shared libraries
 libstdc++6:amd64 GNU Standard C++ Library v3
 libstdc++6:i386 GNU Standard C++ Library v3
 libsub-quote-perl helper modules for subroutines
 libswresample-dev:amd64 FFmpeg library for audio resampling, rematrixing etc. - d
 libswresample2:amd64 FFmpeg library for audio resampling, rematrixing etc. - r
 libswscale-dev:amd64 FFmpeg library for image scaling and various conversions
 libswscale4:amd64 FFmpeg library for image scaling and various conversions
 libsystemd-dev:amd64 systemd utility library - development files
 libtry-tiny-perl module providing minimalistic try/catch
 libudev-dev:amd64 libudev development files
 liburi-perl module to manipulate and access URI strings
 libva-drm2:amd64 Video Acceleration (VA) API for Linux -- DRM runtime
 libva-wayland2:amd64 Video Acceleration (VA) API for Linux -- Wayland runtime
 libva-x11-2:amd64 Video Acceleration (VA) API for Linux -- X11 runtime
 libvpx5:amd64 VP8 and VP9 video codec (shared library)
 libwayland-egl1-mesa:amd64 implementation of the Wayland EGL platform -- runtime
 libwayland-egl1-mesa:i386 implementation of the Wayland EGL platform -- runtime
 libwebkitgtk-1.0-0:amd64 Web content engine library for GTK+
 libwebp-dev:amd64 Lossy compression of digital photographic images.
 libwebp6:amd64 Lossy compression of digital photographic images.
 libwebp6:i386 Lossy compression of digital photographic images.
 libwebpdemux2:amd64 Lossy compression of digital photographic images.
 libwebpmux3:amd64 Lossy compression of digital photographic images.
 libwoff1:amd64 library for converting fonts to WOFF 2.0
 libwww-perl simple and consistent interface to the world-wide web
 libx265-146:amd64 H.265/HEVC video stream encoder (shared library)
 libxml-atom-perl module for manipulating Atom feeds
 libxml2:amd64 GNOME XML library
 libxml2:i386 GNOME XML library
 libxml2-dev:amd64 Development files for the GNOME XML library
 locales GNU C Library: National Language (locale) data [support]
 mesa-common-dev:amd64 Developer documentation for Mesa
 mpv video player based on MPlayer/mplayer2
 openssl Secure Sockets Layer toolkit - cryptographic utility
 perl Larry Wall's Practical Extraction and Report Language
 postgresql-client-common manager for multiple PostgreSQL client versions
 postgresql-common PostgreSQL database-cluster manager
 printer-driver-foo2zjs printer driver for ZjStream-based printers
 pyqt5-dev-tools Development tools for PyQt5
 python-qt4-sql Python bindings for PyQt4's SQL module
 python3-pyqt4 Python3 bindings for Qt4
 python3-pyqt5 Python 3 bindings for Qt5
 python3-pyqt5.qtmultimedia Python 3 bindings for Qt5's Multimedia module
 python3-pyqt5.qtopengl Python 3 bindings for Qt5's OpenGL module
 python3-pyqt5.qtpositioning Python 3 bindings for QtPositioning module
 python3-pyqt5.qtquick Python 3 bindings for QtQuick module
 python3-pyqt5.qtsensors Python 3 bindings for QtSensors module
 python3-pyqt5.qtsql Python 3 bindings for Qt5's SQL module
 python3-pyqt5.qtsvg Python 3 bindings for Qt5's SVG module
 python3-pyqt5.qtwebkit Python 3 bindings for Qt5's WebKit module
 python3-pyqt5.qtx11extras Python 3 bindings for QtX11Extras module
 python3-pyqt5.qtxmlpatterns Python 3 bindings for Qt5's XmlPatterns module
 python3-sip Python 3/C++ bindings generator runtime library
 python3-sip-dev Python 3/C++ bindings generator development files
 python3.6 Interactive high-level object-oriented language (version
 python3.6-dev Header files and a static library for Python (v3.6)
 qml-module-org-kde-analitza library to work with mathematical expressions - QM
 qml-module-qtgraphicaleffects:amd64 Qt 5 Graphical Effects module
 qml-module-qtqml-models2:amd64 Qt 5 Models2 QML module
 qml-module-qtquick-controls:amd64 Qt 5 Quick Controls QML module
 qml-module-qtquick-controls2:amd64 Qt 5 Qt Quick Controls 2 QML module
 qml-module-qtquick-dialogs:amd64 Qt 5 Dialogs QML module
 qml-module-qtquick-layouts:amd64 Qt 5 Quick Layouts QML module
 qml-module-qtquick-privatewidgets:amd64 Qt 5 Private Widgets QML module
 qml-module-qtquick-templates2:amd64 Qt 5 Qt Quick Templates 2 QML module
 qml-module-qtquick-virtualkeyboard Qt virtual keyboard - QML module
 qml-module-qtquick-window2:amd64 Qt 5 window 2 QML module
 qml-module-qtquick-xmllistmodel:amd64 Qt 5 xmllistmodel QML module
 qml-module-qtquick2:amd64 Qt 5 Qt Quick 2 QML module
 qml-module-qtwebkit:amd64 Qt WebKit QML module
 qt5-gtk-platformtheme:amd64 Qt 5 GTK+ 3 platform theme
 qt5-qmltooling-plugins:amd64 Qt 5 qmltooling plugins
 qtchooser Wrapper to select between Qt development binary versions
 qtractor MIDI/Audio multi-track sequencer application
 qtvirtualkeyboard-plugin Qt virtual keyboard
 qtwayland5:amd64 QtWayland platform plugin
 rename Perl extension for renaming multiple files
 sip-dev Python/C++ bindings generator code generator application

The following packages are awaiting processing of triggers that they
have activated in other packages. This processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 bash GNU Bourne Again SHell
 gsettings-desktop-schemas GSettings desktop-wide schemas
 menu generates programs menu for all menu-aware applications

The following packages have been triggered, but the trigger processing
has not yet been done. Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 cups Common UNIX Printing System(tm) - PPD/driver support, web
 dbus simple interprocess messaging system (daemon and utilitie
 gconf2 GNOME configuration database system (support tools)
 gnome-menus GNOME implementation of the freedesktop menu specificatio
 hicolor-icon-theme default fallback theme for FreeDesktop.org icon themes
 libglib2.0-0:amd64 GLib library of C routines
 libglib2.0-0:i386 GLib library of C routines
 man-db on-line manual pager
 shared-mime-info FreeDesktop.org shared MIME database and spec
 systemd system and service manager

<email address hidden> ~$ sudo dpkg --audit qdbus-qt5
<email address hidden> ~$ apt-cache policy qdbus-qt5
qdbus-qt5:
  Installed: 5.9.1-2
  Candidate: 5.9.5-0ubuntu1
  Version table:
     5.9.5-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
 *** 5.9.1-2 100
        100 /var/lib/dpkg/status

-----------------------------------------------------

This is what happens if I try to install qdbus-qt5 manually:

<email address hidden> ~$ sudo dpkg -i /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb
(Reading database ... 788266 files and directories currently installed.)
Preparing to unpack .../qdbus-qt5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking qdbus-qt5 (5.9.5-0ubuntu1) over (5.9.1-2) ...
dpkg: error processing archive /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb (--install):
 unable to open '/usr/lib/qt5/bin/qdbus.dpkg-new': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

To rule out external influence:

Do you have antivirus software running?
Do you have enough free space on the partition(s)?

Revision history for this message
doctordruidphd (doctordruidphd) said :
#5

No, there is no antivirus software running. This system is booting directly from grub, not in a virtualbox or anything like that.

With the system and all the upgradeable packages downloaded, there is over 33gb free disk space.

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

What output do you receive for the commands

ls -l /usr/lib/qt5/
sudo touch /usr/lib/qt5/bin/
ls -l /usr/lib/qt5/

sudo dpkg --unpack /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb

Revision history for this message
doctordruidphd (doctordruidphd) said :
#7

<email address hidden> /$ ls -l /usr/lib/qt5/
total 36
drwxr-xr-x 2 root root 4096 Apr 26 07:55 bin
drwxr-xr-x 2 root root 4096 Apr 26 07:05 libexec
drwxr-xr-x 4 root root 4096 Apr 25 16:01 mkspecs
drwxr-xr-x 64 root root 20480 Apr 26 07:06 plugins
drwxr-xr-x 16 root root 4096 Apr 26 07:05 qml

<email address hidden> /$ sudo touch /usr/lib/qt5/bin/
[sudo] password for greenman:

<email address hidden> /$ ls -l /usr/lib/qt5/
total 36
drwxr-xr-x 2 root root 4096 Apr 26 13:56 bin
drwxr-xr-x 2 root root 4096 Apr 26 07:05 libexec
drwxr-xr-x 4 root root 4096 Apr 25 16:01 mkspecs
drwxr-xr-x 64 root root 20480 Apr 26 07:06 plugins
drwxr-xr-x 16 root root 4096 Apr 26 07:05 qml

<email address hidden> /$ sudo dpkg --unpack /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb
(Reading database ... 788266 files and directories currently installed.)
Preparing to unpack .../qdbus-qt5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking qdbus-qt5 (5.9.5-0ubuntu1) over (5.9.1-2) ...
dpkg: error processing archive /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb (--unpack):
 unable to open '/usr/lib/qt5/bin/qdbus.dpkg-new': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb
<email address hidden> /$

----------------------------------------------

Anticipating the next question:

<email address hidden> /$ ls -l /usr/lib/qt5/
total 36
drwxr-xr-x 2 root root 4096 Apr 26 14:00 bin
drwxr-xr-x 2 root root 4096 Apr 26 07:05 libexec
drwxr-xr-x 4 root root 4096 Apr 25 16:01 mkspecs
drwxr-xr-x 64 root root 20480 Apr 26 07:06 plugins
drwxr-xr-x 16 root root 4096 Apr 26 07:05 qml

<email address hidden> /$ ls -l /usr/lib/qt5/bin
total 0

<email address hidden> /$ sudo touch /usr/lib/qt5/bin/qdbus.dpkg-new

<email address hidden> /$ ls -l /usr/lib/qt5/bin/
total 0
-rw-r--r-- 1 root root 0 Apr 26 14:05 qdbus.dpkg-new

<email address hidden> /$ sudo dpkg --unpack /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb
(Reading database ... 788266 files and directories currently installed.)
Preparing to unpack .../qdbus-qt5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking qdbus-qt5 (5.9.5-0ubuntu1) over (5.9.1-2) ...
dpkg: error processing archive /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb (--unpack):
 unable to open '/usr/lib/qt5/bin/qdbus.dpkg-new': No such file or directory
Errors were encountered while processing:
 /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb

<email address hidden> /$ ls -l /usr/lib/qt5/bin/
total 0

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

This is strange. Installing qdbus-qt5 on my test system works without problems.

What is the output of

sudo strace dpkg --unpack /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb 2>&1 | grep qt5/bin/qdbus

Revision history for this message
doctordruidphd (doctordruidphd) said :
#9

root@Crynfyd:/# sudo strace dpkg --unpack /var/cache/apt/archives/qdbus-qt5_5.9.5-0ubuntu1_amd64.deb 2>&1 | grep qt5/bin/qdbus
read(10, "./usr/lib/qt5/bin/qdbus\0\0\0\0\0\0\0\0\0"..., 512) = 512
lstat("/usr/lib/qt5/bin/qdbus", 0x7ffc15d1af50) = -1 ENOENT (No such file or directory)
rename("/usr/lib/qt5/bin/qdbus.dpkg-tmp", "/usr/lib/qt5/bin/qdbus") = -1 ENOENT (No such file or directory)
rmdir("/usr/lib/qt5/bin/qdbus.dpkg-new") = -1 ENOENT (No such file or directory)
rmdir("/usr/lib/qt5/bin/qdbus.dpkg-tmp") = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/usr/lib/qt5/bin/qdbus.dpkg-new", O_WRONLY|O_CREAT|O_EXCL, 000) = 11
utimes("/usr/lib/qt5/bin/qdbus.dpkg-new", [{tv_sec=1524834368, tv_usec=0}, {tv_sec=1523691493, tv_usec=0}]) = 0
lstat("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus", 0x7ffc15d1af50) = -1 ENOENT (No such file or directory)
rename("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-tmp", "/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus") = -1 ENOENT (No such file or directory)
rmdir("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new") = -1 ENOTDIR (Not a directory)
lstat("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new", {st_mode=S_IFREG|0755, st_size=63472, ...}) = 0
unlink("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new") = 0
rmdir("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-tmp") = -1 ENOENT (No such file or directory)
symlink("../../../qt5/bin/qdbus", "/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new") = 0
lchown("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new", 0, 0) = 0
utimensat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new", [{tv_sec=1524834368, tv_nsec=0}, {tv_sec=1523691493, tv_nsec=0}], AT_SYMLINK_NOFOLLOW) = 0
openat(AT_FDCWD, "/usr/lib/qt5/bin/qdbus.dpkg-new", O_WRONLY) = -1 ENOENT (No such file or directory)
 unable to open '/usr/lib/qt5/bin/qdbus.dpkg-new': No such file or directory
lstat("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-tmp", 0x7ffc15d1bb60) = -1 ENOENT (No such file or directory)
rmdir("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new") = -1 ENOTDIR (Not a directory)
lstat("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new", {st_mode=S_IFLNK|0777, st_size=22, ...}) = 0
unlink("/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new") = 0
lstat("/usr/lib/qt5/bin/qdbus.dpkg-tmp", 0x7ffc15d1bb60) = -1 ENOENT (No such file or directory)
rmdir("/usr/lib/qt5/bin/qdbus.dpkg-new") = -1 ENOENT (No such file or directory)

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

I am sorry, but I do not understand what there is happening on your system.
If I do this on my system, I get a success message and the installation works.

...
utimensat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/qt5/bin/qdbus.dpkg-new", [{tv_sec=1524846745, tv_nsec=0}...
openat(AT_FDCWD, "/usr/lib/qt5/bin/qdbus.dpkg-new", O_WRONLY) = 10
...

I am at my wits' end. Maybe somebody else has got an idea what the cause is for your problem, or can suggest a workaround.

Revision history for this message
doctordruidphd (doctordruidphd) said :
#11

I wonder if it is possible to alter the installation script for this package so it doesn't crash doing these file checks. I know that is not a proper solution, but it would allow the upgrade to go through until the real reason can be found.

Revision history for this message
doctordruidphd (doctordruidphd) said :
#12

The other thing I can do is remove --purge the gdbus-qt5 package; this will allow the rest of the system upgrade to finish, but it will remove plasma. Then maybe modify the install script so qdbus-qt5 will install, so plasma-desktop can be installed. A temporary hack, I know, but it might work.

Revision history for this message
Launchpad Janitor (janitor) said :
#13

This question was expired because it remained in the 'Open' state without activity for the last 15 days.