Questions tagged as ['dpkg']

Questions about using dpkg or errors with dpkg should use this tag. Dpkg is the Debian package management utility that performs lower-level tasks in software installation and removal.
Score: 0
TheCeylann avatar
Ubuntu Installing mdadm
cn flag

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;

enter image description here

What can I do?

Ubuntu 18.04 LTS NVIDIA jetson tx2

Kernel 4.9.125-tegra

Score: 1
gerrit avatar
dpgk --configure -a hangs setting up base-files , apparently in systemd-tty-ask-password-agent
vn flag

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  ...
Score: 0
Command to return package version or empty string
us flag

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 ...

Score: 0
Yoshi Pat avatar
Ubuntu 18.04 Kernel update to 5.13
cn flag

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 ...
Score: 0
Hari Sabareesh S avatar
Unbale to install packages in ubuntu 20.04
in flag
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  ...
Score: 0
Aki avatar
Strange behavior of dpkg with ansible
in flag
Aki

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 ...

Score: 0
Aki avatar
"dpkg: error: dpkg front end lock is locked by another process"
in flag
Aki

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 ...

Score: 6
Dylan Hatz avatar
Why are some commands like "apt" missing on Raspberry Pi 3 Model B with Ubuntu Core 20?
cn flag

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 ...

Score: 0
spacefluff432 avatar
Problem with libc6 and libc6-amd64 while attempting to upgrade to libc6 2.34
ua flag

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 ...
Score: 0
compilebunny avatar
Kernel update insists on trying to create symlinks on /boot even though /boot is vfat
af flag

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 ...

Score: 1
makopec avatar
How to reinstall package ubuntu-advantage-tools
de flag

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 ...
Score: 1
Yoshi Pat avatar
Encountering an error while trying to update the kernel
cn flag

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 ...
Score: 0
Y DE avatar
Unable to install anything using apt-get or update - error about GRUB configuration file and processing kernel image
pw flag
(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 ...
Score: 0
Update Related Issue, Software & Updates not working
cn flag

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 ...

Score: 0
Chen-Y0y0 avatar
Failed to install network-manager by dpkg without internet connection(Ubuntu 20.04 Desktop)
in flag

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 ...
Score: 0
hongmeix avatar
Having trouble when install .NET on Ubuntu
mx flag

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 ...

Score: 0
Fix broken install error: paste subprocess was killed by signal (Broken pipe) (NOT DUPLICATE)
in flag

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 ...
Score: 0
mahesh k avatar
/usr/bin/dpkg: symbol lookup error: /usr/bin/dpkg: undefined symbol: setexecfilecon
in flag

enter code hereI 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 ...
Score: 0
PersianMan avatar
problem in installing Jenkins: Sub-process /usr/bin/dpkg
cz flag

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

Score: 0
Gamer_1514 avatar
Error : Sub-process /usr/bun/dpkg returned an error code(1)
us flag

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)
Score: 0
Bozak avatar
How do I fix an error code that wont let me install or update anything?
cn flag

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  ...
Score: 0
Sravani avatar
How to install debian file in ubuntu 21.04?
th flag

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 ...
Score: 0
Install highest version of package providing given virtual
mx flag

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 ...

Score: 0
Rajesh Chaudhary avatar
Apt install size & remove size are different
cn flag

enter image description here

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?

Score: 0
diva avatar
Wifi adapter not working also update & software doesn't be open on ubuntu 20.04
in flag

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  ...

Score: 0
Alex Castle avatar
Broken packages when trying to install Wine
ca flag

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 ...
Score: 0
tjheslin1 avatar
dpkg: error processing package - Unable to repair/remove linux image version using apt and dpkg
mx flag

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  ...

Score: 1
O.Cuenca avatar
Why is my system not installing newest kernel (linux-image-5.4.0-84-generic)?
uz flag

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 ...
Score: 1
Cannot run apt-get upgrade after upgrade to Ubuntu 20.04
cn flag

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 ...
Score: 0
bahadurshah01 avatar
Error Upgrading Nodejs
cn flag
└─# 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).