Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I did upgrade , had problem, ran update manager, and terninal again without rebooting.... Not sure if not rebooting after first 3 upgrade attemps caused further problem?
I finally did reboot and post the result #4 which had no problem.
I list the results of the 3 terminal upgrades by numbering them. I did not post the results of my 2nd upgrade via update manager....
Since the last upgrade showed no problem, is it fixed? Is the dpkg database corrupted?
Does #3 need fixed? Unable to lock directory /var/cache/apt/archives/
#1 I ran terminal upgrade and got this
Code:
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
dpkg: dependency p
roblems prevent processing triggers for libglib2.0-0:i386:
libglib2.0-0:i386 depends on libc6 (>= 2.28); however:
Package libc6:i386 is not configured yet.
dpkg: error processing package libglib2.0-0:i386 (--configure):
dependency problems - leaving triggers unprocessed
No apport report written because MaxReports is reached already
dpkg: too many err
ors, stopping
Errors were encountered while processing:
libglib2.0-0:i386
libglib2.0-0:i386
libglib2.0-0:i386
libglib2.0-0:i386
#2
I failed to reboot, and ran update manager and it had problems as well.Did not copy that here.
#3 Again failed to reboot and ran terminal and got this
Code:
The following packages were automatically installed and are no longer required:
linux-headers-5.4.0-97 linux-headers-5.4.0-97-generic
linux-image-5.4.0-97-generic linux-modules-5.4.0-97-generic
linux-modules-extra-5.4.0-97-generic
Use 'sudo apt autoremove' to remove them.
E: Could not get lock /var/cache/apt/archives/lock. It is held by process 27114 (synaptic)
N: Be aware that removing the lock file is not a solution and may break your system.
E: Unable to lock directory /var/cache/apt/archives/
Sounded very serious !
#4 I then did a reboot, and ran terminal and got this
Code:
Setting up libgtk-3-bin (3.24.20-0ubuntu1.1) ...
Processing triggers for man-db (2.9.1-1) ...
I looked up the first error Sub-process /usr/bin/dpkg returned an error code (1)” In Ubuntu
Found this
Code:
One of the triggers of this error is a corrupted dpkg database. This can be caused by the sudden interruption of the installation of a software package. Reconfiguring the database is one way to resolve this issue.
corrupted dpkg database
To do this, simply execute the command:
$ sudo dpkg --configure -a
I woud appreciate feedback on this. I do not know if the dpkg problem and or the lock directory problems still need fixed. If so, I will need help to know what commands I need to do. Thanks much.
If your using a Ubuntu based system than use these commands in the commandline. I have had this issue due to a mirrors being down not often but run these.
Code:
sudo dpkg --configure -a
Than
Code:
sudo apt update && sudo apt upgrade
This above will update and upgrade all at once. That should repair the corruption. The only time you need to reboot after is a kernel update. So the new kernel will be loaded. The update manager uses apt so you can not have both open at once.that is where the
maggie@linux ~ $ sudo dpkg --configure -a
[sudo] password for maggie:
maggie@linux ~ $ sudo apt update && sudo apt upgrade
Ign:1 http://packages.linuxmint.com uma InRelease
Hit:2 http://packages.linuxmint.com uma Release
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease
Hit:4 http://archive.canonical.com/ubuntu focal InRelease
Get:5 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Hit:8 https://repo.skype.com/deb stable InRelease
Get:9 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,608 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main i386 Packages [610 kB]
Fetched 2,554 kB in 3s (782 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
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:
linux-headers-5.4.0-97 linux-headers-5.4.0-97-generic
linux-image-5.4.0-97-generic linux-modules-5.4.0-97-generic
linux-modules-extra-5.4.0-97-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
maggie@linux ~ $ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-headers-5.4.0-97 linux-headers-5.4.0-97-generic
linux-image-5.4.0-97-generic linux-modules-5.4.0-97-generic
linux-modules-extra-5.4.0-97-generic
0 upgraded, 0 newly installed, 5 to remove and 0 not upgraded.
After this operation, 380 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 411158 files and directories currently installed.)
Removing linux-headers-5.4.0-97-generic (5.4.0-97.110) ...
Removing linux-headers-5.4.0-97 (5.4.0-97.110) ...
Removing linux-modules-extra-5.4.0-97-generic (5.4.0-97.110) ...
Removing linux-image-5.4.0-97-generic (5.4.0-97.110) ...
/etc/kernel/prerm.d/dkms:
dkms: removing: ndiswrapper 1.60 (5.4.0-97-generic) (x86_64)
-------- Uninstall Beginning --------
Module: ndiswrapper
Version: 1.60
Kernel: 5.4.0-97-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
ndiswrapper.ko:
- Uninstallation
- Deleting from: /lib/modules/5.4.0-97-generic/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod...
DKMS: uninstall completed.
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-97-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-100-generic
Found initrd image: /boot/initrd.img-5.4.0-100-generic
Found linux image: /boot/vmlinuz-5.4.0-99-generic
Found initrd image: /boot/initrd.img-5.4.0-99-generic
Found linux image: /boot/vmlinuz-5.0.0-32-generic
Found initrd image: /boot/initrd.img-5.0.0-32-generic
Adding boot menu entry for UEFI Firmware Settings
done
Removing linux-modules-5.4.0-97-generic (5.4.0-97.110) ...
maggie@linux ~ $
Do I need to do any commands related to this ?
Code:
Uninstall Beginning --------
Module: ndiswrapper
Version: 1.60
Kernel: 5.4.0-97-generic (x86_64)
-------------------------------------
Status: Before uninstall, this module version was ACTIVE on this kernel.
ndiswrapper.ko:
- Uninstallation
- Deleting from: /lib/modules/5.4.0-97-generic/updates/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.
depmod...
DKMS: uninstall completed.
Yes All looks good. I however have never seen ndiswrapper installed in a long time. I would like to see the network card info with the following command below. If you do not mind I would like to know your computer model and brand. I am curious as to why ndiswrapper is installed.
Code:
sudo lshw -class network
There seems to be many kernels installed which takes up space on the hard disk. I tend to keep my system with only two installed. The active and one kernel version below it. In my cause it looks like the attachment. To access this screen open update manager than click on view and than Linux kernels. If you post the screen shot I can advise which ones to remove. You can check which one is being used now by typing in the command line.
Before I got the above info, I ran an upgrade and got the following...
Should I post it as a new problem, or can you address it here ?
Thanks !
Code:
The following packages will be upgraded:
linux-firmware
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 115 MB of archives.
After this operation, 2,980 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-firmware all 1.187.27 [115 MB]
Fetched 115 MB in 11s (10.1 MB/s)
(Reading database ... 374735 files and directories currently installed.)
Preparing to unpack .../linux-firmware_1.187.27_all.deb ...
Unpacking linux-firmware (1.187.27) over (1.187.26) ...
Setting up linux-firmware (1.187.27) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-100-generic
Warning: No support for locale: en_US.utf8
update-initramfs: Generating /boot/initrd.img-5.4.0-99-generic
Warning: No support for locale: en_US.utf8
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic
Warning: No support for locale: en_US.utf8
maggie@linux ~ $
maggie@linux ~ $ sudo apt remove ndiswrapper
[sudo] password for maggie:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'ndiswrapper' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
maggie@linux ~ $
Do I need to remove any kernels? As I recall, I had help removing alot of them in a previous thread...
You have been very helpful, and use layman's terms which I appreciate!
maggie@linux ~ $ sudo apt remove ndiswrapper
[sudo] password for maggie:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'ndiswrapper' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
maggie@linux ~ $
Do I need to remove any kernels? I have a primary one and the next just says active til 8-22. Your second one says installed.... As I recall, I had help removing alot of them in a previous thread...
You have been very helpful, and use layman's terms which I appreciate!
No sounds good. I when back re-read post 3 and I missed that the package ndiswrapper was removed than. But all good now. Now you can use update manager now for updates.
For future reference.related to "only time you need to reboot after is a kernel update", what words do I look for that tell me
there is a kernel being updated ?
I clicked on my active kernel and then it looked like your screen print for the #2 installed kernel....
" There seems to be many kernels installed which takes up space on the hard disk " What was your tip off there may be too many kernels installed on my computer ?
Am I correct that I only have 2 kernels installed as you recommend ?
If you use update manager you will see a kernel update listed in the available updates. Once the system updates are installed and a kernel is installed you will see a message to reboot.
Hmmm, it was your post #4 that noted maybe too many kernels. I bet it was my post #3.
Though I usually use terminal to update, I will now see if update manager specifies a kernel being updated.
I clicked on kernels in update manager. All of 5.11 and 5.8 are end of life. And 5.0 is unsupported. Are they all taking up space?
If so, is it safe I remove them using update manager ?
Thanks for how to fix en_US.utf8 error and how to help battery power
Good grief. Yesterday, I ran an upgrade and got this wanring :
Code:
update-binfmts: warning: current package is openjdk-11, but binary format alread
y installed by openjdk-8
Does it need fixed?
If so, do you want me to post it as a new problem ?
The binfmts package not installed on your system and its not installed on mine either. that is why command not found.
binfmts: command not found
Its a minor bug and its not going to harm anything. It seems this issue had been around since Ubuntu 17.04. though I do not get this error on my system. Though there is a update for openjdk.its java package which is a security update. I would not worry about it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.