Choose style:

Author Topic: Problematic Update (SOLVED)  (Read 237 times)

0 Members and 1 Guest are viewing this topic.

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Problematic Update (SOLVED)
« on: September 09, 2019, 07:44:22 am »
Hi All

Sorry here for help again.

Just back from holiday and did an update on my main laptop using the Update Manager, and it flagged a warning about an incomplete update due to something, sorry this is from memory as I didn't properly record it, with a reference to a kernal path and I'm sure refence to a games controller(?). I wasn't sure what to do so I rebooted with the intention of re-running the update but when it restarted the wireless wasn't working and it couldn't even find any wireless networks.

Booted this laptop from a live Pepper USB and connected to the wifi with no problem so it looks as though I have a corrupt update.

How is the best way to proceed with this problem? Is it possible to fix the bad update from Live USB?

Thanks again for help with this.

« Last Edit: September 09, 2019, 03:59:47 pm by Brianrh »

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1948
  • Karma: 336
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: Problematic Update
« Reply #1 on: September 09, 2019, 07:52:15 am »
Try booting a previous kernel to see if your wifi works. That would make it easier to fix.

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #2 on: September 09, 2019, 09:24:48 am »
Hi murraymint thanks for your help

Going into the Linux Kernel  section of Update Manager shows kernels 5.0.0-23 and 5.0.0-25 installed and removable but 5.0.0-27 is shown loaded and installed but there is no tab to remove. Further I do get a warning that there is a broken package so I expect the this kernel wasn't installed fully..

Is there a manual way to remove a kernel in situations such as this do you know?

I can see that I should have tried to fix this at the time rather than reboot but it's the usual being wise after the event.

Thanks.

Online zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3036
  • Karma: 562
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: Problematic Update
« Reply #3 on: September 09, 2019, 10:16:20 am »
when you reboot the machine - you need to get to the grub menu and then choose advanced options.

You should then be able to choose to boot to the previous kernel.

I believe this is what murraymint meant.

If you do not see grub when booting hit the "esc" key whilst booting and it should appear

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

Linux User #565092
P10 x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k 3840x2160 - 1 x 34" 5120x2160
P9/10 @ P9 x64 Laptop - i7-7700HQ @ 2.80GHz - 8Gb RAM - Nvidia GTX1050 4Gb - 15.6" HD 1920x1080

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #4 on: September 09, 2019, 10:34:36 am »
Thanks Zeb, that make sense to me. I can understand where murraymint was coming from.

I'll give that a go when I get in.

Cheers.

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #5 on: September 09, 2019, 11:21:24 am »
Right so I rolled back to 5.0.0-25 and the wifi is working perfectly again. I went back to the Update Manager, refreshed and updated the one package outstanding and everything seems good. However if I reboot and select kernel 5.0.0-27, the wifi doesn't work again.

So do I stick 5.0.0-25 and wait for the next kernel update to see if this problem has been overcome? Or do I post the details of my problem somewhere so that someone can investigate the problem if it does/or will affect others?

Thanks guys.


Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Problematic Update
« Reply #6 on: September 09, 2019, 11:46:51 am »
Whilst booted to the 5.0.0-25 kernel can you post the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
lspci -vnn | grep -i net
and
Code: [Select]
rfkill list
and
Code: [Select]
iwconfig
and
Code: [Select]
iwlist scan


Can you then boot into the 5.0.0-27 kernel and post the output from the same commands .. obviously you may need to copy the output to a text file, then boot back to the 5.0.0-25 kernel before you can post the output here :)



Quote
did an update on my main laptop using the Update Manager, and it flagged a warning about an incomplete update due to something, sorry this is from memory as I didn't properly record it, with a reference to a kernal path and I'm sure refence to a games controller(?)

can you also post the contents of
Code: [Select]
xed /var/log/apt/history.log
and maybe
Code: [Select]
xed /var/log/apt/history.log.1.gz

and do you get any errors if (whilst running the 5.0.0-25 kernel) you run these commands
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get install -f
then
Code: [Select]
sudo apt-get dist-upgrade
then
Code: [Select]
sudo update-initramfs -uk all
and if no errors, please test again wireless in the 5.0.0-27 kernel and let us know if anything changed.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #7 on: September 09, 2019, 12:30:55 pm »
What is the best way to insert into a post, output's from terminal commands please?

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #8 on: September 09, 2019, 01:39:54 pm »
I think I can remember Zeb saying about using the Spoiler Tab to insert lengthy sections of text so I'll use these.

sudo lshw -C network:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo lshw -C network
[sudo] password for brianrh:
  *-network                 
       description: Wireless interface
       product: RT5390 Wireless 802.11n 1T/1R PCIe
       vendor: Ralink corp.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: wlp1s0
       version: 00
       serial: cc:af:78:03:3e:47
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rt2800pci driverversion=5.0.0-25-generic firmware=0.40 ip=172.16.40.123 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:16 memory:c2500000-c250ffff
  *-network
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eno1
       version: 05
       serial: 2c:27:d7:e6:f8:a2
       size: 10Mbit/s
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=half firmware=rtl_nic/rtl8105e-1.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:17 ioport:3000(size=256) memory:c0404000-c0404fff memory:c0400000-c0403fff
[close]

lspci -vnn | grep -i net:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ lspci -vnn | grep -i net
01:00.0 Network controller [0280]: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe [1814:5390]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
   Subsystem: Hewlett-Packard Company RTL810xE PCI Express Fast Ethernet controller [103c:166f]
[close]

rfkill list:
Spoiler (click here to view / hide)
rianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ rfkill list
0: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
[close]

iwconfig:
Spoiler (click here to view / hide)
rianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ iwconfig
eno1      no wireless extensions.

lo        no wireless extensions.

wlp1s0    IEEE 802.11  ESSID:"TOPFIRE" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:03:7F:E0:00:63   
          Bit Rate=52 Mb/s   Tx-Power=20 dBm   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=55/70  Signal level=-55 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:2  Invalid misc:123   Missed beacon:0
[close]

iwlist scan:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ iwlist scan
eno1      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

wlp1s0    Scan completed :
          Cell 01 - Address: 00:03:7F:E0:00:63
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=63/70  Signal level=-47 dBm 
                    Encryption key:on
                    ESSID:"TOPFIRE"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              9 Mb/s; 12 Mb/s; 18 Mb/s
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=000000225c92fb55
                    Extra: Last beacon: 642520ms ago
                    IE: Unknown: 0007544F5046495245
                    IE: Unknown: 010882848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 0706474220010D14
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 0B050800180000
                    IE: Unknown: 3B025100
                    IE: Unknown: 2D1ACC111BFFFF000000000000000000000100000000000000000000
                    IE: Unknown: 3D1606000400000000000000000000000000000000000000
                    IE: Unknown: 7F080400000000000040
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00

[close]

The above are all for 5.0.0-25. I will boot into 5.0.0-27 and post these outputs for that shortly.

Thanks.

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #9 on: September 09, 2019, 02:10:09 pm »
Right so for the 5.0.0-27 Kernel, the outputs are:

 sudo lshw -C network:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo lshw -C network
[sudo] password for brianrh:
  *-network UNCLAIMED       
       description: Network controller
       product: RT5390 Wireless 802.11n 1T/1R PCIe
       vendor: Ralink corp.
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: latency=0
       resources: memory:c2500000-c250ffff
  *-network UNCLAIMED
       description: Ethernet controller
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list
       configuration: latency=0
       resources: ioport:3000(size=256) memory:c0404000-c0404fff memory:c0400000-c0403fff
[close]


lspci -vnn | grep -i net:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ lspci -vnn | grep -i net
01:00.0 Network controller [0280]: Ralink corp. RT5390 Wireless 802.11n 1T/1R PCIe [1814:5390]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
   Subsystem: Hewlett-Packard Company RTL810xE PCI Express Fast Ethernet controller [103c:166f]
[close]


Finally I'll go back to 5.0.0-25 and run the commands you suggest.

Thanks for your patience.
rfkill list:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ rfkill list
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $
[close]

iwconfig:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ iwconfig
lo        no wireless extensions.

[close]

iwlist scan:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ iwlist scan
lo        Interface doesn't support scanning.

[close]

The last 3 outputs above didn't seem right but I rechecked and got the same result.



xed /var/log/apt/history.log:
Spoiler (click here to view / hide)
Start-Date: 2019-09-09  16:04:07
Commandline: /usr/sbin/synaptic --hide-main-window --non-interactive --parent-window-id 50331683 -o Synaptic::closeZvt=true --progress-str Please wait, this can take some time --finish-str Update is complete --set-selections-file /tmp/tmplN9Lwe
Requested-By: brianrh (1000)
Upgrade: linux-libc-dev:amd64 (4.15.0-60.67, 4.15.0-62.69)
Remove: linux-image-generic-hwe-18.04:amd64 (5.0.0.27.84), linux-signed-generic-hwe-18.04:amd64 (5.0.0.27.84), linux-generic-hwe-18.04:amd64 (5.0.0.27.84)
End-Date: 2019-09-09  16:04:09
[close]

xed /var/log/apt/history.log.1.gz
Spoiler (click here to view / hide)
xed /var/log/apt/history.log.1.gz
[close]

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #10 on: September 09, 2019, 02:25:12 pm »
Outputs when running the following commands:

sudo apt-get update
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo apt-get update
[sudo] password for brianrh:
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 http://ppa.launchpad.net/peppermintos/p10-release/ubuntu bionic InRelease
Hit:3 http://gb.archive.ubuntu.com/ubuntu bionic InRelease
Get:4 http://gb.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Fetched 163 kB in 1s (148 kB/s)                               
Reading package lists... Done
[close]


sudo apt-get install -f
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode fcitx fcitx-bin fcitx-data fcitx-frontend-all
  fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
  fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel
  fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic
  kde-config-fcitx libfcitx-config4 libfcitx-core0 libfcitx-gclient1
  libfcitx-qt5-1 libfcitx-utils0 libpresage-data libpresage1v5
  linux-headers-5.0.0-23 linux-headers-5.0.0-23-generic
  linux-image-5.0.0-23-generic linux-modules-5.0.0-23-generic
  linux-modules-extra-5.0.0-23-generic presage thermald
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
[close]

sudo apt-get dist-upgrade
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  amd64-microcode fcitx fcitx-bin fcitx-data fcitx-frontend-all
  fcitx-frontend-gtk2 fcitx-frontend-gtk3 fcitx-frontend-qt4
  fcitx-frontend-qt5 fcitx-module-dbus fcitx-module-kimpanel
  fcitx-module-lua fcitx-module-x11 fcitx-modules fcitx-ui-classic
  kde-config-fcitx libfcitx-config4 libfcitx-core0 libfcitx-gclient1
  libfcitx-qt5-1 libfcitx-utils0 libpresage-data libpresage1v5
  linux-headers-5.0.0-23 linux-headers-5.0.0-23-generic
  linux-image-5.0.0-23-generic linux-modules-5.0.0-23-generic
  linux-modules-extra-5.0.0-23-generic presage thermald
Use 'sudo apt autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
[close]

sudo update-initramfs -uk all
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo update-initramfs -uk all
update-initramfs: Generating /boot/initrd.img-5.0.0-27-generic
update-initramfs: Generating /boot/initrd.img-5.0.0-25-generic
update-initramfs: Generating /boot/initrd.img-5.0.0-23-generic
[close]

I hope that after all the work I am causing, there is some benefit to the community and it's not just something silly that I've done wrong somewhere.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Problematic Update
« Reply #11 on: September 09, 2019, 02:31:58 pm »
Whilst booted into the 5.0.0-27 kernel, does wireless spring to life if you run:
Code: [Select]
sudo modprobe rt2800pci
or do you get any error from that command ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #12 on: September 09, 2019, 02:47:34 pm »
Unfortunately I get :

"brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo modprobe rt2800pci
[sudo] password for brianrh:
modprobe: FATAL: Module rt2800pci not found in directory /lib/modules/5.0.0-27-generic"



Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Problematic Update
« Reply #13 on: September 09, 2019, 03:03:11 pm »
Okay, for whatever reason it looks like the linux-modules-extra-5.0.0-27-generic package didn't get installed properly during the last kernel update...

Boot into the 5.0.0.25 kernel

Open a terminal and run:
Code: [Select]
sudo apt-get install --reinstall linux-headers-generic-hwe-18.04 linux-headers-5.0.0-27 linux-headers-5.0.0-27-generic linux-image-generic-hwe-18.04 linux-image-5.0.0-27-generic linux-modules-5.0.0-27-generic linux-modules-extra-5.0.0-27-generic
if you get any errors, post them here.

If you get no errors, reboot to the 5.0.0-27 kernel and see if wireless now works



Make sure you get all that command because it scrolls :)
« Last Edit: September 09, 2019, 03:07:00 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline Brianrh

  • Jr. Member
  • **
  • Posts: 41
  • Karma: 14
  • New Forum User
    • View Profile
Re: Problematic Update
« Reply #14 on: September 09, 2019, 03:10:48 pm »
I thought we might be there but it came back with this:
Spoiler (click here to view / hide)
brianrh@brianrh-HP-Pavilion-g6-Notebook-PC ~ $ sudo apt-get install --reinstall linux-headers-generic-hwe-18.04 linux-headers-5.0.0-27 linux-headers-5.0.0-27-generic linux-image-generic-hwe-18.04 linux-image-5.0.0-27-generic linux-modules-5.0.0-27-generic linux-modules-extra-5.0.0-27-generic
[sudo] password for brianrh:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fcitx fcitx-bin fcitx-data fcitx-frontend-all fcitx-frontend-gtk2
  fcitx-frontend-gtk3 fcitx-frontend-qt4 fcitx-frontend-qt5 fcitx-module-dbus
  fcitx-module-kimpanel fcitx-module-lua fcitx-module-x11 fcitx-modules
  fcitx-ui-classic kde-config-fcitx libfcitx-config4 libfcitx-core0
  libfcitx-gclient1 libfcitx-qt5-1 libfcitx-utils0 libpresage-data libpresage1v5
  linux-headers-5.0.0-23 linux-headers-5.0.0-23-generic linux-image-5.0.0-23-generic
  linux-modules-5.0.0-23-generic linux-modules-extra-5.0.0-23-generic presage
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed
  linux-image-generic-hwe-18.04 linux-modules-extra-5.0.0-27-generic
0 to upgrade, 2 to newly install, 5 reinstalled, 0 to remove and 0 not to upgrade.
Need to get 0 B/66.9 MB of archives.
After this operation, 172 MB of additional disk space will be used.
(Reading database ... 400833 files and directories currently installed.)
Preparing to unpack .../0-linux-headers-5.0.0-27_5.0.0-27.28~18.04.1_all.deb ...
Unpacking linux-headers-5.0.0-27 (5.0.0-27.28~18.04.1) over (5.0.0-27.28~18.04.1) ...
Preparing to unpack .../1-linux-headers-5.0.0-27-generic_5.0.0-27.28~18.04.1_amd64.deb ...
Unpacking linux-headers-5.0.0-27-generic (5.0.0-27.28~18.04.1) over (5.0.0-27.28~18.04.1) ...
Preparing to unpack .../2-linux-headers-generic-hwe-18.04_5.0.0.27.84_amd64.deb ...
Unpacking linux-headers-generic-hwe-18.04 (5.0.0.27.84) over (5.0.0.27.84) ...
Preparing to unpack .../3-linux-image-5.0.0-27-generic_5.0.0-27.28~18.04.1_amd64.deb ...
Unpacking linux-image-5.0.0-27-generic (5.0.0-27.28~18.04.1) over (5.0.0-27.28~18.04.1) ...
Preparing to unpack .../4-linux-modules-extra-5.0.0-27-generic_5.0.0-27.28~18.04.1_amd64.deb ...
Unpacking linux-modules-extra-5.0.0-27-generic (5.0.0-27.28~18.04.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-1o9G41/4-linux-modules-extra-5.0.0-27-generic_5.0.0-27.28~18.04.1_amd64.deb (--unpack):
 unable to open '/lib/modules/5.0.0-27-generic/kernel/drivers/usb/gadget/function/usb_f_printer.ko.dpkg-new': Operation not permitted
Selecting previously unselected package linux-image-generic-hwe-18.04.
Preparing to unpack .../5-linux-image-generic-hwe-18.04_5.0.0.27.84_amd64.deb ...
Unpacking linux-image-generic-hwe-18.04 (5.0.0.27.84) ...
Preparing to unpack .../6-linux-modules-5.0.0-27-generic_5.0.0-27.28~18.04.1_amd64.deb ...
Unpacking linux-modules-5.0.0-27-generic (5.0.0-27.28~18.04.1) over (5.0.0-27.28~18.04.1) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-1o9G41/4-linux-modules-extra-5.0.0-27-generic_5.0.0-27.28~18.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[close]