Unable to use MX Package installer after a failed attempt to install new kernel  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
rawthey
Posts: 16
Joined: Thu Aug 26, 2021 11:57 am

Unable to use MX Package installer after a failed attempt to install new kernel

#1 Post by rawthey »

I tried to install a new kernel with M|X Package Installer but it stopped part way through. I don't remember the exact error message at the time but here's the relevant section from dpkg.log:

Code: Select all

2023-10-23 15:27:57 startup archives unpack
2023-10-23 15:27:57 install linux-headers-6.3.0-2mx-ahs-common:all <none> 6.3.11-1~mx23ahs
2023-10-23 15:27:57 status half-installed linux-headers-6.3.0-2mx-ahs-common:all 6.3.11-1~mx23ahs
2023-10-23 15:28:00 status unpacked linux-headers-6.3.0-2mx-ahs-common:all 6.3.11-1~mx23ahs
2023-10-23 15:28:00 install linux-kbuild-6.3:amd64 <none> 6.3.11-1~mx23ahs
2023-10-23 15:28:00 status half-installed linux-kbuild-6.3:amd64 6.3.11-1~mx23ahs
2023-10-23 15:28:00 status unpacked linux-kbuild-6.3:amd64 6.3.11-1~mx23ahs
2023-10-23 15:28:00 install linux-headers-6.3.0-2mx-ahs-amd64:amd64 <none> 6.3.11-1~mx23ahs
2023-10-23 15:28:00 status half-installed linux-headers-6.3.0-2mx-ahs-amd64:amd64 6.3.11-1~mx23ahs
2023-10-23 15:28:02 status unpacked linux-headers-6.3.0-2mx-ahs-amd64:amd64 6.3.11-1~mx23ahs
2023-10-23 15:28:02 install linux-image-6.3.0-2mx-ahs-amd64-unsigned:amd64 <none> 6.3.11-1~mx23ahs
2023-10-23 15:28:02 status half-installed linux-image-6.3.0-2mx-ahs-amd64-unsigned:amd64 6.3.11-1~mx23ahs
2023-10-23 15:28:02 status not-installed linux-image-6.3.0-2mx-ahs-amd64-unsigned:amd64 <none>
Now I'm unable to use the package manager because it shuts down as soon as it displays the list of repositories.
Here's the output when running the installer from the command line:

Code: Select all

$ Starting /usr/bin/mx-packageinstaller
mx-packageinstaller version: 23.9.01
QMetaObject::connectSlotsByName: Connecting slot on_comboRemote_activated() with the first of the following compatible signals: ("activated(int)", "activated(QString)")
+++ void MainWindow::setProgressDialog() +++
+++ void MainWindow::setup() +++
dpkg-query -f '${Version}' -W flatpak
"dpkg-query: error: parsing file '/var/lib/dpkg/status' near line 47859 package 'pinentry-qt':\n 'Depends' field, reference to 'libncursesw6': version contains 'c' instead of ')'"
apt-get update --print-uris | grep -m1 -qE '/mx/testrepo/dists/bookworm/test/'
+++ void MainWindow::loadPmFiles() +++
+++ void MainWindow::refreshPopularApps() +++
+++ QStringList MainWindow::listInstalled() +++
dpkg --get-selections | grep -v deinstall | cut -f1
"dpkg: error: parsing file '/var/lib/dpkg/status' near line 47859 package 'pinentry-qt':\n 'Depends' field, reference to 'libncursesw6': version contains 'c' instead of ')'"
+++ void MainWindow::displayPopularApps() const +++
+++ void MainWindow::displayPackages() +++
+++ QHash<QString, VersionNumber> MainWindow::listInstalledVersions() +++
/usr/bin/mxpi-launcher: line 73:  4836 Segmentation fault      pkexec /usr/bin/mxpi-launcher
And here's a selection of what appears to be the relevant part of /var/lib/dpkg/status which appears to have been corrupted at the end of the "Depends:" line:

Code: Select all

Package: pinentry-qt
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 245
Maintainer: Debian GnuPG Maintainers <pkg-gnupg-maint@lists.alioth.debian.org>
Architecture: amd64
Multi-Arch: foreign
Source: pinentry
Version: 1.2.1-1
Provides: pinentry, pinentry-x11
Depends: libassuan0 (>= 2.1.0), libc6 (>= 2.34), libgcc-s1 (>= 3.0), libgpg-error0 (>= 1.16), libncursesw6 (>= 0:stom
 commands. The simple interface allows the usage of any executable (including
 scripts such as shell scripts) to provide information to the user, while the
 more advanced API allows for modification of all parts of the screen reader by
 accessing its internal state. Plugins are called using a configurable key
 stroke.
How do I go about fixing this?

Code: Select all

System:
  Kernel: 6.1.0-10-amd64 [6.1.38-2] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-10-amd64 root=UUID=<filter> ro quiet splash
    resume=UUID=<filter> resume_offset=3784704
  Desktop: KDE Plasma v: 5.27.5 wm: kwin_x11 vt: 7 dm: SDDM Distro: MX-23.1_KDE_x64 Libretto
    July 31 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Laptop System: Dell product: Inspiron 5590 v: N/A serial: <superuser required> Chassis:
    type: 10 serial: <superuser required>
  Mobo: Dell model: 0TPNPM v: A00 serial: <superuser required> UEFI: Dell v: 1.24.0
    date: 08/10/2023
Battery:
  ID-1: BAT0 charge: 12.7 Wh (71.8%) condition: 17.7/42.0 Wh (42.2%) volts: 13.0 min: 11.4
    model: SMP DELL VM73283 type: Li-poly serial: <filter> status: charging
CPU:
  Info: model: Intel Core i3-10110U bits: 64 type: MT MCP arch: Comet/Whiskey Lake note: check
    gen: core 10 level: v3 note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF8
  Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
    desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 4 MiB desc: 1x4 MiB
  Speed (MHz): avg: 1250 high: 2600 min/max: 400/4100 scaling: driver: intel_pstate
    governor: powersave cores: 1: 800 2: 2600 3: 800 4: 800 bogomips: 20799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling, PBRSB-eIBRS: SW
    sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Dell driver: i915 v: kernel arch: Gen-9.5
    process: Intel 14nm built: 2016-20 ports: active: eDP-1 empty: DP-1,HDMI-A-1,HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:9b41 class-ID: 0300
  Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-6:4
    chip-ID: 0bda:565a class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1440x810 s-dpi: 96 s-size: 380x213mm (14.96x8.39") s-diag: 436mm (17.15")
  Monitor-1: eDP-1 model: AU Optronics 0x23ed built: 2017 res: 1440x810 hz: 60 dpi: 106
    gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 23.1.2-1~mx23ahs renderer: Mesa Intel UHD Graphics (CML GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Dell driver: sof-audio-pci-intel-cnl
    alternate: snd_hda_intel,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:02c8 class-ID: 0401
  API: ALSA v: k6.1.0-10-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel modules: wl bus-ID: 00:14.3
    chip-ID: 8086:02f0 class-ID: 0280
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb v: 0.8
    bus-ID: 1-10:5 chip-ID: 8087:0aaa class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: hardware: no
    software: no address: <filter>
  Info: acl-mtu: 1021:4 sco-mtu: 96:6 link-policy: rswitch sniff link-mode: peripheral accept
Drives:
  Local Storage: total: 238.47 GiB used: 23.34 GiB (9.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Toshiba model: KBG40ZNS256G NVMe KIOXIA 256GB
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD
    serial: <filter> rev: 10410106 temp: 26.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 238.22 GiB size: 233.43 GiB (97.99%) used: 23.34 GiB (10.0%) fs: ext4
    dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 276 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1 maj-min: 259:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 5.61 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
  ID-2: swap-2 type: zram size: 256 MiB used: 2.8 MiB (1.1%) priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 38.0 C pch: 40.0 C mobo: 38.0 C
  Fan Speeds (RPM): cpu: 0
Repos:
  Packages: No packages detected. Unsupported package manager? pm: dpkg pkgs: 0
    tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
    1: deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bullseye main
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bookworm main non-free
    2: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bookworm ahs
Info:
  Processes: 210 Uptime: 48m wakeups: 3211 Memory: 3.61 GiB used: 2.36 GiB (65.2%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

User avatar
Adrian
Developer
Posts: 9220
Joined: Wed Jul 12, 2006 1:42 am

Re: Unable to use MX Package installer after a failed attempt to install new kernel  [Solved]

#2 Post by Adrian »

See the instructions here how to rebuild the corrupt status file:
https://askubuntu.com/questions/4834/ho ... tatus-file

rawthey
Posts: 16
Joined: Thu Aug 26, 2021 11:57 am

Re: Unable to use MX Package installer after a failed attempt to install new kernel

#3 Post by rawthey »

Adrian wrote: Mon Oct 23, 2023 11:57 am See the instructions here how to rebuild the corrupt status file:
https://askubuntu.com/questions/4834/ho ... tatus-file
Thanks copying /var/lib/dpkg/status-old to /var/lib/dpkg/status as suggested in that link solved the problem

Post Reply

Return to “MX Help”