As Jurgen experience in #7, for me, blindly typing passwords (a ton of times) didn't do anything, but bailing out of this at the command line and re-running it through Software Updater did the trick for me.
-- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1775526 Title: package linux-image-4.15.0-22-generic 4.15.0-22.24 failed to install/upgrade: installed linux-image-4.15.0-22-generic package pre- removal script subprocess returned error exit status 1 Status in linux package in Ubuntu: Confirmed Bug description: Failed to build package when installing nvidia drivers. Every time `Building initial module for 4.15.0-22-generic` is stuck. There is no antivirus on my machine. ProblemType: Package DistroRelease: Ubuntu 18.04 Package: linux-image-4.15.0-22-generic 4.15.0-22.24 ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17 Uname: Linux 4.15.0-22-generic x86_64 NonfreeKernelModules: rfcomm bnep nouveau asus_nb_wmi asus_wmi sparse_keymap mxm_wmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core ath3k btusb btrtl ath9k ath9k_common btbcm ath9k_hw uvcvideo btintel bluetooth videobuf2_vmalloc videobuf2_memops ath videobuf2_v4l2 videobuf2_core mac80211 videodev media mei_me mei rtsx_pci_ms memstick intel_cstate intel_rapl_perf cfg80211 shpchp lpc_ich ie31200_edac wmi mac_hid asus_wireless i915 rtsx_pci_sdmmc r8169 rtsx_pci ApportVersion: 2.20.9-0ubuntu7 Architecture: amd64 Date: Thu Jun 7 12:36:23 2018 ErrorMessage: installed linux-image-4.15.0-22-generic package pre-removal script subprocess returned error exit status 1 InstallationDate: Installed on 2018-06-05 (1 days ago) InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426) Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3 PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1 RelatedPackageVersions: dpkg 1.19.0.5ubuntu2 apt 1.6.1 SourcePackage: linux-signed Title: package linux-image-4.15.0-22-generic 4.15.0-22.24 failed to install/upgrade: installed linux-image-4.15.0-22-generic package pre-removal script subprocess returned error exit status 1 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1775526/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp