Questions tagged as ['dpkg']
I need to use RAID to my nvidia jetson tx2 server machine. I started from webmin for make RAID configuration I gor this error;
The kernel RAID status file /proc/mdstat does not exist on your system. Your kernel probably does not support RAID.
After, I tried install mdadm to my ubuntu server machihe and I got this error;
What can I do?
Ubuntu 18.04 LTS NVIDIA jetson tx2
Kernel 4.9.125-tegra
dpkg --configure -a
is hanging when setting up base-files
.
From diagnosis so far, it appears dpkg --configure -a
runs /var/lib/dpkg/info/base-files.postinst
, which runs deb-systemd-invoke start motd-news.timer
, which executes systemd-tty-ask-password-agent --watch
, which waits forever (without asking for a password on the terminal). Detailed diagnosis:
$ sudo strace -o /tmp/dpkg-strace -tt -ff dpkg ...

I'm looking for a simple command that prints the package version, only if the package is installed.
If the package is not installed (or is not a valid package), I want the output to be an empty string.
This is what I've come up with so far. Unfortunately, it only works in cases when the package exists.
dpkg-query --showformat="\${Version}" --show ubuntu-desktop
1.469
However, when the package does ...
I am trying to update kernel in Ubuntu 18.04 to 5.13 for having my wifi working? Currently I am seeing that "No WIFI Adapter Found" in settings so I think I would need Mediatek 7961 driver. But from previous posts, I see that updating to kernel 5.13 fixes the problem. When I tried to update I am seeing the following error:
ASUS@ASUS-ROG-Zephyrus:~/Downloads/kernel$ sudo dpkg -i *.deb
[sudo] passwor ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing package xrdp (--configure):
installed xrdp package post-installation script subprocess returned error exit status 1
Setting up ca-certificates (20210119~20.04.2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource ...
As part of my workflow I'm using Ubuntu server 20.04.3.
So I prepare the image for the VM and deploy it using Ansible.
Since it is env with no access to the internet all packages I'm installing have been previously downloaded .deb. by execution simple shell command:
dpkg -i deb_1.deb deb_2.deb deb_3.deb deb_4.deb
dpkg -i deb_5.deb deb_6.deb deb_7.deb deb_8.deb
Sometimes ~5% of cases, I'm recei ...
As part of my workflow I'm using Ubuntu server 20.04.3.
So I prepare the image for the VM and deploy it using Ansible.
Since it is env with no access to the internet all packages I'm installing have been previously downloaded .deb. by execution simple shell command:
dpkg -i deb_1.deb deb_2.deb deb_3.deb deb_4.deb
dpkg -i deb_5.deb deb_6.deb deb_7.deb deb_8.deb
Sometimes ~5% of cases, I'm recei ...
I have Ubuntu Core 20 installed on a Raspberry Pi 3 Model B, but the commands that I am trying keep failing. Commands that I have tried: locate
, apt
, apt-get
, dpkg
, lsb_release
, and more, but they all tell me that the command was not found.
I looked them up using the which
command, but it just outputs nothing and throws up no error. Other commands, like date
and such do work and show up on which
, but t ...
So the core of the problem started after Ubuntu prompted me to upgrade. I am on Ubuntu 18.04.5 (Bionic Beaver). After the upgrade, I tried starting my browser to no avail. So I navigated to the binary in a terminal, ran it, and got this error:
user@computer:~/Files/Apps/Waterfox$ ./waterfox
XPCOMGlueLoad error for file /home/user/Files/Apps/Waterfox/libnspr4.so:
/lib/x86_64-linux-gnu/libc.so.6: ver ...
This is a recent kernel update on Ubuntu Mate 20.04 running on Raspberry Pi.
apt-get -y update first produced:
Setting up linux-image-5.4.0-1042-raspi (5.4.0-1042.46) ...
Failed to create symlink to vmlinuz-5.4.0-1042-raspi: Operation not permitted at /usr/bin/linux-update-symlinks line 64.
dpkg: error processing package linux-image-5.4.0-1042-raspi (--configure): installed linux-image-5.4.0-1042-r ...
I tried to install FEniCS on Ubuntu 18.04.5 LTS with the following commands (from fenicsproject.org site):
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install fenics
The operations completed with an error:
Traceback (most recent call last):<br>
File "\<string>", line 2, in \<module><br>
M ...
I am trying to update the kernel from 5.4 to 5.14 on Ubuntu 18.04, but I am seeing this dpkg error. Can someone please help with this?
Files under Downloads directory:
linux-headers-5.14.6-051406_5.14.6-051406.202109181232_all.deb
linux-headers-5.14.6-051406-generic_5.14.6-051406.202109181232_amd64.deb
linux-image-unsigned-5.14.6-051406-generic_5.14.6-051406.202109181232_amd64.deb
linux-modules-5.14.6 ...
(Reading database ... 234944 files and directories currently installed.)
Removing linux-image-5.8.0-55-generic (5.8.0-55.62~20.04.1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.8.0-55-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/b ...

I'm using Ubuntu 20.04.3. LTS. Software & Update app is not working on my system. I don't care as I prefer terminal for updates. But, I don't know how to remove unused repositores (I added FDM repository earlier and I no longer use FDM, but its repository is still present).
Even it doesn't bother me. My issue is a notification related to update error. I have pasted the message below.
An error oc ...
My NetworkManager is broken so I do not have any internet connection. And I want to reinstall it. I got the package network-manager_1.22.10-1ubuntu1_amd64.deb and tried to install it by sudo dpkg -i
, but an error occurred:(Chinese language)
(正在读取数据库 ... 系统当前共安装有 919338 个文件和目录。)
准备解压 network-manager_1.22.10-1ubuntu1_amd64.deb ...
正在解压 network-man ...
I'm trying to install .NET on Ubuntu 18.04, when I execute sudo dpkg -i packages-microsoft-prod.deb command after wget the packages-microsoft-prod.deb, an error happens:
sudo dpkg -i packages-microsoft-prod.deb dpkg: warning: failed to open configuration file '/usr2/hongmeix/.dpkg.cfg' for reading: Permission denied dpkg: error: cannot access archive 'packages-microsoft-prod.deb': Permission deni ...

I tried to fix a broken install:
$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies...Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Don ...
enter code here
I am trying to install the package libnl-3-dev
.
command used : sudo apt-get install libnl-3-dev
xxxxx:~$ sudo apt-get install libnl-3-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (< 2.20) but 2.27-3ubunt ...
when i try to install Debian-stable version of Jenkins in Ubuntu :
Errors were encountered while processing:
jenkins
E: Sub-process /usr/bin/dpkg returned an error code (1)
i do this instructions and execute sudo dpkg --configure -a
to solve this , but the problem remained
Input:
sudo apt install lvm2
Output:
(These are the last lines of the whole output)
update-initramfs: Generating /boot/initrd.img-5.11.0-34-generic
Errors were encountered while processing:
lvm2
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is the message that displays every time I try to update or install anything:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libvdpau1
The following NEW packages will be installed:
libvdpau1
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
298 ...
I installed one package by using wget command ,The downloaded package is storing in my Downloads folder,when i tried to do the following command it throws an error please help me to resolve this issue..
sudo dpkg -i libcurl3_7.58.0-2ubuntu2_amd64.deb
dpkg-deb: error: 'libcurl3_7.58.0-2ubuntu2_amd64.deb' is not a Debian format archive
dpkg: error processing archive libcurl3_7.58.0-2ubuntu2_amd64.d ...

We have hand-rolled debian packages in internal repos. The package has the version baked into the name because reasons, eg: driver-headers-8.12.12_8.12.12_amd64.deb
I want to always be able to install the latest / highest-versioned "driver-headers" package. So we make each one provide the nominal package name with matching version (in the debian/control):
Provide: driver-headers (= 8.12.12)
The prob ...
Let's say I installed mumble server. At the time of installation, it showed X MB of storage will be used (can't remember).
If I uninstall those programs, the size is relatively less than that of installation size.
Why is that so? Do I need to remove its configuration? How can I find app-specific configuration?
I have ubuntu 20.04 and suddenly the wifi become not detected( no wifi adapter found )
i have tried with installing firmware-b43 but it gives me this error:
sudo dpkg -i firmware-b43-installer_*
(Reading database ... 311808 files and directories currently installed.) Preparing to unpack firmware-b43-installer_019-4_all.deb ... Unpacking firmware-b43-installer (1:019-4) over (1:019-4) ... Setting ...
Im trying to get wine but every time i do it gives me this error
sudo apt-get install winehq-staging
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or b ...
dpkg: error processing package - Unable to repair/remove linux image version using apt and dpkg
I'm having an issue with apt
and dpkg
updating my linux kernel version.
Help would be greatly appreciated and I'm also looking at this as a good linux learning opportunity for myself :)
I've looked at many similar solutions online which suggest commands which when run end up in the same or very similar errors ...
I'm using Ubuntu 20.04.3 LTS x86_64 and I've been trying to install the newest version of the kernel using:
sudo apt update && sudo apt upgrade
But by the end of the run it always shows the following message:
Adding boot menu entry for UEFI Firmware Settings
/etc/grub.d/35_fwupd: line 5: /usr/share/grub: Is a directory
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return co ...

Recently, I have clicked on the upgrade button to upgrade to Ubuntu 20.04
from 18.04
. I think the upgrade didn't finish installing everything for some reason...
The system works fine but, every time I try using apt I get the following errors:
xyz@xyz-laptop:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Th ...
└─# apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
nodejs : Depends: libnode72 (= 12.21.0~dfsg-5) but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).