LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-02-2022, 04:02 PM   #1
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Rep: Reputation: Disabled
DPKG error and unable to lock directory


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.

Maggie
 
Old 03-02-2022, 07:26 PM   #2
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
Hi

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

Code:
Unable to lock directory /var/cache/apt/archives/
Close synaptic when using the commandline
 
1 members found this post helpful.
Old 03-02-2022, 08:52 PM   #3
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
Hi dave67,

Thank you for your post !
Did my first command
Code:
sudo dpkg --configure -a
change anything ?
There were no entries made.....

Here is the result
Code:
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.
Does it look okay to you ?
Thanks,

Maggie
 
Old 03-03-2022, 08:25 PM   #4
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
Hi Maggie

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.

Code:
uname -r
Attached Thumbnails
Click image for larger version

Name:	Kernels.png
Views:	3
Size:	44.7 KB
ID:	38522  
 
1 members found this post helpful.
Old 03-05-2022, 12:42 PM   #5
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
Hi dave67,

My laptop is an HP model 15-1033 wm

Here is the result of the command

Code:
maggie@linux ~ $ sudo lshw -class network
[sudo] password for maggie:                      
Sorry, try again.
[sudo] password for maggie:              
  *-network DISABLED        
       description: Wireless interface
       product: RTL8188EE Wireless Network Adapter
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 01
       serial: 10:08:b1:11:35:75
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtl8188ee driverversion=5.4.0-100-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11
       resources: irq:96 ioport:2000(size=256) memory:90500000-90503fff
  *-network
       description: Ethernet interface
       product: RTL810xE PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
Click image for larger version

Name:	Screenshot from 2022-03-05 12-07-05.png
Views:	8
Size:	109.7 KB
ID:	38535


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 ~ $
 
Old 03-05-2022, 08:07 PM   #6
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
The en_us.utf8 warning isn't critical it's been there for a few releases.

The wifi card has been support in the linux kernel since kernel 4.17+. You can remove the ndiswrapper.

Code:
sudo apt remove ndiswrapper

Last edited by dave67; 03-05-2022 at 08:08 PM.
 
1 members found this post helpful.
Old 03-06-2022, 12:26 AM   #7
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
Result :

Code:
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
 
Old 03-06-2022, 12:38 AM   #8
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
Result :

Code:
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!

Maggie
 
Old 03-06-2022, 08:28 AM   #9
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
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.

Your welcome
 
1 members found this post helpful.
Old 03-06-2022, 06:28 PM   #10
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
dave67,

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 ?

Thanks again for your patience and help !
Maggie
 
Old 03-07-2022, 09:19 PM   #11
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
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.


My tip off was the lower output of post 5

Code:
update-initramfs: Generating /boot/initrd.img-5.4.0-100-generic
Code:
update-initramfs: Generating /boot/initrd.img-5.4.0-99-generic
Code:
update-initramfs: Generating /boot/initrd.img-5.0.0-32-generic

As for having only 2 kernels I do that to save space. When new kernels are installed old ones are not removed or in use they take up HDD space.

This might help with battery power on the laptop. It does on mine.

Code:
sudo apt install tlp
Read about what this does its basically a install and forget. Type

Code:
sudo tlp-stat
to make sure its active.

https://linrunner.de/tlp/introduction.html



If the en_US.utf8 error bugs you you can fix it like this

Code:
sudo locale-gen --purge --no-archive
than run

Code:
sudo update-initramfs -u -t
than it will be gone
 
1 members found this post helpful.
Old 03-08-2022, 03:07 PM   #12
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
dave67,

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 ?


Thanks again !
Maggie
 
Old 03-10-2022, 01:41 AM   #13
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
Hi Magster

Those kernels 5.8 and 5.11 are not install automatically. The only LM distribution that uses 5.8 is edge. And it's for newer hardware.



This below has been reported as a bug in Debian. Its a Java it's a minor issue. I will look into it more.

Code:
update-binfmts: warning: current package is openjdk-11, but binary format already installed by openjdk-8

What does this command output have.

Code:
binfmts --display

Last edited by dave67; 03-10-2022 at 01:45 AM.
 
1 members found this post helpful.
Old 03-10-2022, 07:19 PM   #14
magster
Member
 
Registered: Nov 2020
Distribution: "Linux Mint" VERSION="20.2 (Uma)"
Posts: 142

Original Poster
Rep: Reputation: Disabled
Hi dave67,

Thanks for responding. Here is the result:

Code:
maggie@linux ~ $ binfmts --display
binfmts: command not found
maggie@linux ~ $
Does it mean anything that the command is not found ?



Here is result of command to see if the battery saving command is active. Does it look okay ?

Code:
maggie@linux ~ $ sudo tlp-stat
--- TLP 1.3.1 --------------------------------------------

+++ Configured Settings:
defaults.conf L0004: TLP_ENABLE="1"
defaults.conf L0005: TLP_PERSISTENT_DEFAULT="0"
defaults.conf L0006: DISK_IDLE_SECS_ON_AC="0"
defaults.conf L0007: DISK_IDLE_SECS_ON_BAT="2"
defaults.conf L0008: MAX_LOST_WORK_SECS_ON_AC="15"
defaults.conf L0009: MAX_LOST_WORK_SECS_ON_BAT="60"
defaults.conf L0010: CPU_ENERGY_PERF_POLICY_ON_AC="balance_performance"
defaults.conf L0011: CPU_ENERGY_PERF_POLICY_ON_BAT="balance_power"
defaults.conf L0012: SCHED_POWERSAVE_ON_AC="0"
defaults.conf L0013: SCHED_POWERSAVE_ON_BAT="1"
defaults.conf L0014: NMI_WATCHDOG="0"
defaults.conf L0015: DISK_DEVICES="nvme0n1 sda"
defaults.conf L0016: DISK_APM_LEVEL_ON_AC="254 254"
defaults.conf L0017: DISK_APM_LEVEL_ON_BAT="128 128"
defaults.conf L0018: DISK_IOSCHED="keep keep"
defaults.conf L0019: SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
defaults.conf L0020: SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
defaults.conf L0021: AHCI_RUNTIME_PM_TIMEOUT="15"
defaults.conf L0022: PCIE_ASPM_ON_AC="default"
defaults.conf L0023: PCIE_ASPM_ON_BAT="default"
defaults.conf L0024: RADEON_POWER_PROFILE_ON_AC="default"
defaults.conf L0025: RADEON_POWER_PROFILE_ON_BAT="default"
defaults.conf L0026: RADEON_DPM_PERF_LEVEL_ON_AC="auto"
defaults.conf L0027: RADEON_DPM_PERF_LEVEL_ON_BAT="auto"
defaults.conf L0028: WIFI_PWR_ON_AC="off"
defaults.conf L0029: WIFI_PWR_ON_BAT="on"
defaults.conf L0030: WOL_DISABLE="Y"
defaults.conf L0031: SOUND_POWER_SAVE_ON_AC="0"
defaults.conf L0032: SOUND_POWER_SAVE_ON_BAT="1"
defaults.conf L0033: SOUND_POWER_SAVE_CONTROLLER="Y"
defaults.conf L0034: BAY_POWEROFF_ON_AC="0"
defaults.conf L0035: BAY_POWEROFF_ON_BAT="0"
defaults.conf L0036: BAY_DEVICE="sr0"
defaults.conf L0037: RUNTIME_PM_ON_AC="on"
defaults.conf L0038: RUNTIME_PM_ON_BAT="auto"
defaults.conf L0039: RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
defaults.conf L0040: USB_AUTOSUSPEND="1"
defaults.conf L0041: USB_BLACKLIST_BTUSB="0"
defaults.conf L0042: USB_BLACKLIST_PHONE="0"
defaults.conf L0043: USB_BLACKLIST_PRINTER="1"
defaults.conf L0044: USB_BLACKLIST_WWAN="0"
defaults.conf L0045: USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN="0"
defaults.conf L0046: RESTORE_DEVICE_STATE_ON_STARTUP="0"
defaults.conf L0047: RESTORE_THRESHOLDS_ON_BAT="0"
defaults.conf L0048: NATACPI_ENABLE="1"
defaults.conf L0049: TPACPI_ENABLE="1"
defaults.conf L0050: TPSMAPI_ENABLE="1"

+++ System Info
System         = Hewlett-Packard 096A100003405F00050660180 HP 15 Notebook PC 
BIOS           = F.23
Release        = Linux Mint 20.2
Kernel         = 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64
/proc/cmdline  = BOOT_IMAGE=/boot/vmlinuz-5.4.0-104-generic root=UUID=5183c82a-23c0-49ce-b7d8-ce010369dacf ro quiet splash
Init system    = systemd v245 (245.4-4ubuntu3.15)
Boot mode      = UEFI

+++ TLP Status
State          = enabled
RDW state      = enabled
Last run       = 06:43:45 PM,    900 sec(s) ago
Mode           = AC
Power source   = AC

+++ Processor
CPU model      = Intel(R) Celeron(R) CPU  N2830  @ 2.16GHz

/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq  =   499800 [kHz]
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq  =  2415700 [kHz]

/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver    = intel_pstate
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor  = powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors = performance powersave
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq  =   499800 [kHz]
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq  =  2415700 [kHz]

/sys/devices/system/cpu/intel_pstate/min_perf_pct      =  20 [%]
/sys/devices/system/cpu/intel_pstate/max_perf_pct      = 100 [%]
/sys/devices/system/cpu/intel_pstate/no_turbo          =   0
/sys/devices/system/cpu/intel_pstate/turbo_pct         =  13 [%]
/sys/devices/system/cpu/intel_pstate/num_pstates       =  24

/sys/devices/system/cpu/cpu0/power/energy_perf_bias    =  4 (balance_performance) [EPB]
/sys/devices/system/cpu/cpu1/power/energy_perf_bias    =  4 (balance_performance) [EPB]

/sys/module/workqueue/parameters/power_efficient       = Y
/proc/sys/kernel/nmi_watchdog                          = 0

+++ Temperatures
CPU temp               =    52 [°C]
Fan speed              = (not available)

+++ File System
/proc/sys/vm/laptop_mode               =     0
/proc/sys/vm/dirty_writeback_centisecs =  1500
/proc/sys/vm/dirty_expire_centisecs    =  1500
/proc/sys/vm/dirty_ratio               =    20
/proc/sys/vm/dirty_background_ratio    =    10

+++ Storage Devices
Devices = nvme0n1 sda

/dev/nvme0n1: not present.

/dev/sda:
  Type      = ATA
  Model     = PNY CS1311 240GB SSD                    
  Firmware  = CS131122
  APM Level = 254
  Status    = active/idle
  TRIM      = supported
  Scheduler = [mq-deadline] none (multi queue)

  Runtime PM: control = on, autosuspend_delay_ms =   -1

+++ AHCI Link Power Management (ALPM)
/sys/class/scsi_host/host0/link_power_management_policy  = med_power_with_dipm
/sys/class/scsi_host/host1/link_power_management_policy  = med_power_with_dipm

+++ AHCI Host Controller Runtime Power Management
/sys/bus/pci/devices/0000:00:13.0/ata1/power/control = on
/sys/bus/pci/devices/0000:00:13.0/ata2/power/control = on

+++ Intel Graphics
/sys/module/i915/parameters/enable_dc        = -1 (use per-chip default)
/sys/module/i915/parameters/enable_fbc       =  0 (disabled)
/sys/module/i915/parameters/enable_psr       =  0 (disabled)
/sys/module/i915/parameters/modeset          = -1 (use per-chip default)

/sys/class/drm/card0/gt_min_freq_mhz         =   187 [MHz]
/sys/class/drm/card0/gt_max_freq_mhz         =   750 [MHz]
/sys/class/drm/card0/gt_boost_freq_mhz       =   750 [MHz]

+++ Wireless
bluetooth = none (no device)
wifi      = off (software)
wwan      = none (no device)

wlp2s0(rtl8188ee)             : wifi, not connected, power management = on

+++ Audio
/sys/module/snd_hda_intel/parameters/power_save            = 0
/sys/module/snd_hda_intel/parameters/power_save_controller = N

+++ PCIe Active State Power Management
/sys/module/pcie_aspm/parameters/policy = [default] performance powersave powersupersave (using BIOS preferences)

+++ Runtime Power Management
Device blacklist = (not configured)
Driver blacklist = amdgpu mei_me nouveau nvidia pcieport radeon

/sys/bus/pci/devices/0000:00:00.0/power/control = on   (0x060000, Host bridge, iosf_mbi_pci)
/sys/bus/pci/devices/0000:00:02.0/power/control = on   (0x030000, VGA compatible controller, i915)
/sys/bus/pci/devices/0000:00:13.0/power/control = on   (0x010601, SATA controller, ahci)
/sys/bus/pci/devices/0000:00:14.0/power/control = on   (0x0c0330, USB controller, xhci_hcd)
/sys/bus/pci/devices/0000:00:1a.0/power/control = on   (0x108000, Encryption controller, mei_txe)
/sys/bus/pci/devices/0000:00:1b.0/power/control = on   (0x040300, Audio device, snd_hda_intel)
/sys/bus/pci/devices/0000:00:1c.0/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.1/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1c.2/power/control = auto (0x060400, PCI bridge, pcieport)
/sys/bus/pci/devices/0000:00:1f.0/power/control = on   (0x060100, ISA bridge, lpc_ich)
/sys/bus/pci/devices/0000:00:1f.3/power/control = on   (0x0c0500, SMBus, i801_smbus)
/sys/bus/pci/devices/0000:01:00.0/power/control = on   (0xff0000, Unassigned class [ff00], rtsx_pci)
/sys/bus/pci/devices/0000:02:00.0/power/control = on   (0x028000, Network controller, rtl8188ee)
/sys/bus/pci/devices/0000:03:00.0/power/control = on   (0x020000, Ethernet controller, r8169)

+++ USB
Autosuspend         = enabled
Device whitelist    = (not configured)
Device blacklist    = (not configured)
Bluetooth blacklist = disabled
Phone blacklist     = disabled
WWAN blacklist      = disabled

Bus 002 Device 002 ID 0bda:0401 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. USB3.0 Hub (hub)
Bus 002 Device 001 ID 1d6b:0003 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 3.0 root hub (hub)
Bus 001 Device 004 ID 0c45:6517 control = auto, autosuspend_delay_ms = 2000 -- Microdia HP Webcam (uvcvideo)
Bus 001 Device 003 ID 30fa:0300 control = on,   autosuspend_delay_ms = 2000 -- USB OPTICAL MOUSE  (usbhid)
Bus 001 Device 002 ID 0bda:5401 control = auto, autosuspend_delay_ms =    0 -- Realtek Semiconductor Corp. RTL 8153 USB 3.0 hub with gigabit ethernet (hub)
Bus 001 Device 001 ID 1d6b:0002 control = auto, autosuspend_delay_ms =    0 -- Linux Foundation 2.0 root hub (hub)

+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = inactive (laptop not supported)
tpacpi-bat = inactive (laptop not supported)
tp-smapi   = inactive (laptop not supported)

+++ Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = Hewlett-Packard
/sys/class/power_supply/BAT0/model_name                     = Primary
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/charge_full_design             =   1696 [mAh]
/sys/class/power_supply/BAT0/charge_full                    =   1696 [mAh]
/sys/class/power_supply/BAT0/charge_now                     =   1536 [mAh]
/sys/class/power_supply/BAT0/current_now                    =      0 [mA]
/sys/class/power_supply/BAT0/status                         = Unknown

Charge                                                      =   90.6 [%]
Capacity                                                    =  100.0 [%]

+++ Recommendations
* Install smartmontools for disk drive health info

maggie@linux ~ $
 
Old 03-11-2022, 02:01 PM   #15
dave67
Member
 
Registered: Apr 2007
Posts: 421

Rep: Reputation: 68
The tlp-stat looks great.

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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to fix ‘E: Could not get lock /var/lib/dpkg/lock’ Error in Ubuntu LXer Syndicated Linux News 0 01-28-2020 03:00 PM
LXer: How To Fix “E: Could not get lock /var/lib/dpkg/lock” Error On Ubuntu LXer Syndicated Linux News 0 11-24-2019 05:33 AM
Unable to lock the administration directory (/var/lib/dpkg/) cccc Debian 11 12-05-2017 08:33 PM
Unable to lock the administration directory (/var/lib/dpkg/), is another process usin Surenthar Linux - Newbie 2 03-12-2012 10:02 AM
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? amritpalpathak Linux - Software 5 06-16-2011 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration