Author Topic: Error when I do the system updates on peppermint 9 (Solved)  (Read 1352 times)

Offline sdgengineer

  • Member
  • ***
  • Posts: 79
  • Karma: 5
  • Forum User
    • View Profile
    • Scott Gardner PE
  • Peppermint version(s): 1, 3, 4, 5, 6, 8, 9, 10
Error when I do the system updates on peppermint 9 (Solved)
« on: January 14, 2019, 06:07:55 pm »
Hello

I noticed this when I tried to install NMAP  on Peppermint 9. When I did a sudo apt purge, I get the following errors:  see bold


scott@scott-HAL ~ $ sudo apt purge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libblas3:amd64 (3.7.1-4ubuntu1) ...
update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode
update-alternatives: error: error creating symbolic link '/etc/alternatives/libblas.so.3-x86_64-linux-gnu.dpkg-tmp': No such file or directory
dpkg: error processing package libblas3:amd64 (--configure):
 installed libblas3:amd64 package post-installation script subprocess returned error exit status 2
Setting up linux-firmware (1.173.3) ...
/usr/sbin/update-initramfs: 207: /usr/sbin/update-initramfs: awk: not found
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of liblapack3:amd64:
 liblapack3:amd64 depends on libblas3 | libblas.so.3; however:
  Package libblas3:amd64 is not configured yet.
  Package libblas.so.3 is not installed.
  Package libblas3:amd64 which provides libblas.so.3 is not configured yet.

dpkg: error processing package liblapack3:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-numpy:
 python-numpy depends on libblas3 | libblas.so.3; however:
  Package libblas3:amd64 is not configured yet.
  Package libblas.so.3 is not installed.
  Package libblas3:amd64 which provides libblas.so.3 is not configured yet.
 python-numpy depends on liblapack3 | liblapack.so.3; however:
  Package liblapack3:amd64 is not configured yet.
  Package liblapack.so.3 is not installed.
  Package liblapack3:amd64 which provides liblapack.so.3 is not configured yet.

dpkg: error processing package python-numpy (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
libblas3:amd64
 linux-firmware
 liblapack3:amd64
 python-numpy libblas3:amd64
 linux-firmware
 liblapack3:amd64
 python-numpy
E: Sub-process /usr/bin/dpkg returned an error code (1)

E: Sub-process /usr/bin/dpkg returned an error code (1)

scott@scott-HAL ~ $

Can you give me some guidance?

« Last Edit: January 16, 2019, 06:59:25 am by sdgengineer »
No Job is impossible for the  person who doesn't have to do it!

Offline pin

  • Veteran
  • ****
  • Posts: 1838
  • Karma: 280
    • View Profile
Re: Error when I do the system updates on peppermint 9
« Reply #1 on: January 14, 2019, 10:34:25 pm »
Was it a copy/paste typo on your post?
You wrote
Code: [Select]
sudo apt purgeDid you forget the name of the package to be removed?
« Last Edit: January 14, 2019, 10:39:58 pm by pin »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Error when I do the system updates on peppermint 9
« Reply #2 on: January 15, 2019, 07:28:59 am »
Hmm...

What's the output from
Code: [Select]
ls -l /etc/alternatives | grep libblasand
Code: [Select]
uname -aand
Code: [Select]
dpkg -l | grep libblasand
Code: [Select]
dpkg -l | grep gawkand
Code: [Select]
ls -l /etc/alternatives/awkand what happens if you run:
Code: [Select]
sudo apt-get install --reinstall libblas3
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline sdgengineer

  • Member
  • ***
  • Posts: 79
  • Karma: 5
  • Forum User
    • View Profile
    • Scott Gardner PE
  • Peppermint version(s): 1, 3, 4, 5, 6, 8, 9, 10
Re: Error when I do the system updates on peppermint 9(So;ved)
« Reply #3 on: January 15, 2019, 10:53:27 am »
Results bold below.  I tried to reinstall libblas using the synaptic package manager, and this looks like the error I received. 

Thanks for your assistance. 


Hmm...

What's the output from
Code: [Select]
ls -l /etc/alternatives | grep libblas
lrwxrwxrwx 1 root root 43 Jan 14 23:01 libblas.so.3-x86_64-linux-gnu -> /usr/lib/x86_64-linux-gnu/blas/libblas.so.3


and
Code: [Select]
uname -a
Linux scott-HAL 4.15.0-43-generic #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

and
Code: [Select]
dpkg -l | grep libblas
ii  libblas3:amd64  3.7.1-4ubuntu1    amd64        Basic Linear Algebra Reference implementations, shared library


and
Code: [Select]
dpkg -l | grep gawk
ii  gawk                                  1:4.1.4+dfsg-1build1                            amd64        GNU awk, a pattern scanning and processing language

and
Code: [Select]
ls -l /etc/alternatives/awkls: cannot access '/etc/alternatives/awk': No such file or directory

and what happens if you run:
Code: [Select]
sudo apt-get install --reinstall libblas3



Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/140 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 358158 files and directories currently installed.)
Preparing to unpack .../libblas3_3.7.1-4ubuntu1_amd64.deb ...
Unpacking libblas3:amd64 (3.7.1-4ubuntu1) over (3.7.1-4ubuntu1) ...
Setting up libblas3:amd64 (3.7.1-4ubuntu1) ...
Setting up linux-firmware (1.173.3) ...
/usr/sbin/update-initramfs: 207: /usr/sbin/update-initramfs: awk: not found
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 linux-firmware
E: Sub-process /usr/bin/dpkg returned an error code (1)

« Last Edit: January 16, 2019, 07:01:20 am by sdgengineer »
No Job is impossible for the  person who doesn't have to do it!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Error when I do the system updates on peppermint 9
« Reply #4 on: January 15, 2019, 11:06:40 am »
What happens if you run:
Code: [Select]
sudo apt-get install --reinstall gawkand what's the output from
Code: [Select]
update-alternatives --query awk
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline sdgengineer

  • Member
  • ***
  • Posts: 79
  • Karma: 5
  • Forum User
    • View Profile
    • Scott Gardner PE
  • Peppermint version(s): 1, 3, 4, 5, 6, 8, 9, 10
Re: Error when I do the system updates on peppermint 9 (Solved)
« Reply #5 on: January 15, 2019, 11:43:20 am »
Answers in Bold below:

What happens if you run:
Code: [Select]
sudo apt-get install --reinstall gawk

Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 9 not upgraded.
1 not fully installed or removed.
Need to get 401 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/main amd64 gawk amd64 1:4.1.4+dfsg-1build1 [401 kB]
Fetched 401 kB in 1s (501 kB/s)
(Reading database ... 358158 files and directories currently installed.)
Preparing to unpack .../gawk_1%3a4.1.4+dfsg-1build1_amd64.deb ...
Unpacking gawk (1:4.1.4+dfsg-1build1) over (1:4.1.4+dfsg-1build1) ...
Setting up gawk (1:4.1.4+dfsg-1build1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up linux-firmware (1.173.3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic
I: The initramfs will attempt to resume from /dev/zram5
I: (UUID=ad420bcd-1eea-4254-bdfa-f13d47334991)
I: Set the RESUME variable to override this.
update-initramfs: Generating /boot/initrd.img-4.15.0-23-generic
I: The initramfs will attempt to resume from /dev/zram5
I: (UUID=ad420bcd-1eea-4254-bdfa-f13d47334991)
I: Set the RESUME variable to override this.
W: APT had planned for dpkg to do more than it reported back (5 vs 9).
   Affected packages: linux-firmware:amd64


and what's the output from
Code: [Select]
update-alternatives --query awk

Name: awk
Link: /usr/bin/awk
Slaves:
 awk.1.gz /usr/share/man/man1/awk.1.gz
 nawk /usr/bin/nawk
 nawk.1.gz /usr/share/man/man1/nawk.1.gz
Status: auto
Best: /usr/bin/gawk
Value: /usr/bin/gawk

Alternative: /usr/bin/gawk
Priority: 10
Slaves:
 awk.1.gz /usr/share/man/man1/gawk.1.gz
 nawk /usr/bin/gawk
 nawk.1.gz /usr/share/man/man1/gawk.1.gz

Alternative: /usr/bin/mawk
Priority: 5
Slaves:
 awk.1.gz /usr/share/man/man1/mawk.1.gz
 nawk /usr/bin/mawk
 nawk.1.gz /usr/share/man/man1/mawk.1.gz
« Last Edit: January 16, 2019, 07:02:05 am by sdgengineer »
No Job is impossible for the  person who doesn't have to do it!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Error when I do the system updates on peppermint 9
« Reply #6 on: January 15, 2019, 01:31:00 pm »
What's the output from:
Code: [Select]
sudo apt-get install --reinstall linux-firmwareand
Code: [Select]
sudo fdisk -land
Code: [Select]
sudo blkidand
Code: [Select]
cat /etc/initramfs-tools/conf.d/resume
« Last Edit: January 15, 2019, 01:35:37 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline sdgengineer

  • Member
  • ***
  • Posts: 79
  • Karma: 5
  • Forum User
    • View Profile
    • Scott Gardner PE
  • Peppermint version(s): 1, 3, 4, 5, 6, 8, 9, 10
Re: Error when I do the system updates on peppermint 9
« Reply #7 on: January 15, 2019, 03:32:09 pm »
What's the output from:
Code: [Select]
sudo apt-get install --reinstall linux-firmware
sudo apt-get install --reinstall linux-firmware
[sudo] password for scott:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/65.3 MB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 358158 files and directories currently installed.)
Preparing to unpack .../linux-firmware_1.173.3_all.deb ...
Unpacking linux-firmware (1.173.3) over (1.173.3) ...
Setting up linux-firmware (1.173.3) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-43-generic
I: The initramfs will attempt to resume from /dev/zram5
I: (UUID=5976103c-5a46-4886-9626-b32d2562d205)
I: Set the RESUME variable to override this.
update-initramfs: Generating /boot/initrd.img-4.15.0-23-generic
I: The initramfs will attempt to resume from /dev/zram5
I: (UUID=5976103c-5a46-4886-9626-b32d2562d205)
I: Set the RESUME variable to override this.


and
Code: [Select]
sudo fdisk -lsudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 598923FD-8A26-44E4-AB0B-518B350AFDE8

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   1023999   1021952   499M Windows recovery environment
/dev/sda2  1024000   1226751    202752    99M EFI System
/dev/sda3  1226752   1259519     32768    16M Microsoft reserved
/dev/sda4  1259520 976773119 975513600 465.2G Microsoft basic data


Disk /dev/sdb: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 35E5BEF9-B8FD-4C78-BF9B-E979BF7D2460

Device       Start       End   Sectors   Size Type
/dev/sdb1     2048   1050623   1048576   512M EFI System
/dev/sdb2  1050624 298493951 297443328 141.9G Linux filesystem




Disk /dev/zram0: 659.2 MiB, 691200000 bytes, 168750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram1: 659.2 MiB, 691200000 bytes, 168750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram2: 659.2 MiB, 691200000 bytes, 168750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram3: 659.2 MiB, 691200000 bytes, 168750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram4: 659.2 MiB, 691200000 bytes, 168750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/zram5: 659.2 MiB, 691200000 bytes, 168750 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes



and
Code: [Select]
sudo blkid
/dev/sda1: LABEL="Recovery" UUID="16C263F6C263D88F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="471f3d0e-1026-46d6-8f23-6cf9836ad221"
/dev/sda2: UUID="2264-7318" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="97901c6c-5943-412d-ae20-972187e7ce00"
/dev/sda4: UUID="BA54663B5465FB11" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="ecaa909d-1f8f-44be-b959-63d8d1151325"
/dev/sdb1: UUID="C34A-95E5" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="67e5f34c-2038-4e8b-9ae9-25759351820d"
/dev/sdb2: UUID="a6c069d8-4058-4dba-a359-6d39b40fd389" TYPE="ext4" PARTUUID="b3038826-8f07-4e89-a774-f9c237370a8f"
/dev/zram5: UUID="5976103c-5a46-4886-9626-b32d2562d205" TYPE="swap"
/dev/sda3: PARTLABEL="Microsoft reserved partition" PARTUUID="0861e2f7-56f0-4da8-9a9b-a44fb0f8fcc0"
/dev/zram0: UUID="6092e462-199a-4093-b8f6-3df7de6a4679" TYPE="swap"
/dev/zram1: UUID="df71ad61-0305-450c-b618-9c9cd0b8364d" TYPE="swap"
/dev/zram2: UUID="6b1068a9-fdd3-4b91-b0d8-0b20305ddf69" TYPE="swap"
/dev/zram3: UUID="534bc03e-013f-4e8b-995b-6c9c96746aca" TYPE="swap"
/dev/zram4: UUID="ec33767f-0e33-4dc0-9726-68d3531cd909" TYPE="swap"


and
Code: [Select]
cat /etc/initramfs-tools/conf.d/resume

cat: /etc/initramfs-tools/conf.d/resume: No such file or directory

I went there manually and there is no resume file
No Job is impossible for the  person who doesn't have to do it!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Error when I do the system updates on peppermint 9
« Reply #8 on: January 15, 2019, 04:02:59 pm »
Okay, your original issue seems solved, but you might have a swap/resume issue...

what's the contents of
Code: [Select]
xed /etc/fstab
« Last Edit: January 15, 2019, 04:04:44 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline sdgengineer

  • Member
  • ***
  • Posts: 79
  • Karma: 5
  • Forum User
    • View Profile
    • Scott Gardner PE
  • Peppermint version(s): 1, 3, 4, 5, 6, 8, 9, 10
Re: Error when I do the system updates on peppermint 9 (Solved)
« Reply #9 on: January 15, 2019, 05:52:57 pm »
Okay, your original issue seems solved, but you might have a swap/resume issue...

what's the contents of
Code: [Select]
xed /etc/fstab

fstab contents here:

Code: [Select]
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=a6c069d8-4058-4dba-a359-6d39b40fd389 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=C34A-95E5  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
Thanks,  to fix the original problem, was the key  reinstalling  linux-firmware?

I followed the guidance given of removing the windows HD, installing peppermint, but was suprised when I didn't see a swap drive created on /dev/sdb, but it seems to work ok.  The computer has 8 Gig of ram, is peppermint using half of that as a "swap file (zram)?  I left about 100 GB unused on the Hard drive with the idea of installing another Linux DIstro.  Would it be worthwhile to use * GB of that for a swap file?
« Last Edit: January 16, 2019, 07:03:51 am by sdgengineer »
No Job is impossible for the  person who doesn't have to do it!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Error when I do the system updates on peppermint 9
« Reply #10 on: January 16, 2019, 06:07:57 am »
Quote
was suprised when I didn't see a swap drive created on /dev/sdb

Peppermint 9 uses (by default) a swap FILE, not a swap PARTITION.



Okay it was me misunderstanding, the:-
Code: [Select]
I: The initramfs will attempt to resume from /dev/zram5
I: (UUID=5976103c-5a46-4886-9626-b32d2562d205)
I: Set the RESUME variable to override this.
being kicked out by update-initramfs is quite normal, and informational, not an error message.

I wasn't seeing them because I don't have zram-config installed.

So all fixed :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec