dpkg

Force non-interactive `apt-get install` to fail on config file conflict

Force non-interactive `apt-get install` to fail on config file conflict I’m doing unattended / non-interactive package installations via DEBIAN_FRONTEND=noninteractive apt-get install -y my_package This works as attended in most cases, but still gives me an interactive prompt if there is config file conflict, e.g. something like this: Configuration file ‘/etc/foo’ ==> Modified (by you or …

Total answers: 1

How to set up deb question priority with an apt flag?

How to set up deb question priority with an apt flag? We have the nice tool dpkg-reconfigure to re-ask install configuration questions of a single package. For example, by dpkg-reconfigure -plow something I can re-configure the package something, i.e. re-run its installation script. We also have the apt tool to download a package from a …

Total answers: 1

Unable to install any packages with apt in a brand new 24.04 installation because of libreoffice-help-zh-tw

Unable to install any packages with apt in a brand new 24.04 installation because of libreoffice-help-zh-tw I’ve never used Linux before and just installed Ubuntu 24.04. Edit: I used the ZFS file system when I installed. At the end of the installation, I got an error popup unable to securely remove ‘/usr/share/libreoffice/help/zh-TW/text/swriter/00/stylesmenu.html.dpkg-tmp’: Invalid exchange but …

Total answers: 1

Unable to install strongswan in Ubuntu 22.04

Unable to install strongswan in Ubuntu 22.04 I am trying to re-install strongswan in ubuntu 22. Ran the following commands $ sudo apt update Hit:1 https://download.docker.com/linux/ubuntu focal InRelease Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Hit:5 http://archive.ubuntu.com/ubuntu jammy-security InRelease Reading package lists… Done Building dependency tree… Done Reading state information… …

Total answers: 1

apt-cache search not showing expected result

apt-cache search not showing expected result I tried to do apt-cache search skype But it shows me this as a result: libopuso – opus codec runtime library So what does that mean? Asked By: chukwuma ogbonna || Source The result tells me Skype for desktop is not a deb file. Per the Skype site, the …

Total answers: 2

Check for non-interactive mode in Debian package maintainer scripts

Check for non-interactive mode in Debian package maintainer scripts If I’m writing a Debian package maintainer script (such as a pre-install script) for a package I create, how can I make the script determine if it is supposed to be running in non-interactive mode (e.g. if apt-get install was invoked with -y, and things like …

Total answers: 1

how can I remove a dpkg installed repository?

how can I remove a dpkg installed repository? This error shows up on my sudo apt update: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.microsoft.com/repos/code stable InRelease: The following signatures couldn’t be verified because the public key is not …

Total answers: 3

CentOS ls uses dpkg

CentOS ls uses dpkg I am logged in as a user on an CentOS version 6.9 HPC. When I try the ls command, I get: /usr/local/bin/ls: line 96: dpkg: command not found Abort, this script is only intended for Ubuntu-like distros When I open the corresponding ls file, line 96 has the line: # (internal) …

Total answers: 1

E: Sub-process /usr/bin/dpkg returned an error code (1) when installing something on kubuntu

Intel ARC intel-i915-dkms dpkg error upgrading to HWE kernel 6.5 Whenever I try to install something, it returns this error: dpkg: dependency problems prevent configuration of linux-headers-generic: linux-headers-generic depends on linux-headers-6.5.0-17-generic; however: Package linux-headers-6.5.0-17-generic is not configured yet. dpkg: error processing package linux-headers-generic (–configure): dependency problems – leaving unconfigured Setting up libegl-mesa0:amd64 (24.1~git2402200600.41cd32~oibaf~m) … No …

Total answers: 1

Debian Bullseye – dependency problems

Debian Bullseye – dependency problems After an upgrade on Debian Bullseye, I got this error : Errors were encountered while processing: python3 python3-ldb apt-listchanges lsb-release python3-mediainfodll caja-mediainfo python3-distro python3-talloc:amd64 python3-apt python3-debconf samba-libs:amd64 yelp libsmbclient:amd64 mate-user-guide gvfs-backends With this message for each package : dpkg: error processing package [PACKAGE NAME] (–configure): dependency problems – leaving unconfigured …

Total answers: 1

How to unlock a package that was locked with Muon

How to unlock a package that was locked with Muon I used the Muon package manager to lock a package to a specific version, but when I try to release the lock, I get the message "The package code could not be locked. Failed to write lock file." Also sudo apt-mark showhold is empty. I …

Total answers: 1

Debian package version comparing explanation

Debian package version comparing explanation I’m a bit confused about the Debian package version orders. Take a look at the following two Debian package versions, how come the first is <= than the second? 0-emacs-29.1.90~202401142128~ubuntu20.04.1 0-emacs-28.3-rc1~202302201437~ubuntu20.04.1 I’m thinking that 29 > 28 so the first should be more recent, no? Asked By: xpt || Source …

Total answers: 1

kernel panic after after parrotOS upgrade

kernel panic after after parrotOS upgrade after attempting sudo apt upgrade on a fresh install of parrot os, new kernel update is present but trying to boot into it from grub gives gives me a kernel panic. here is what i tried and with what errors ive been getting: The following partially installed packages will …

Total answers: 1

Why is it necessary to run 'dpkg-reconfigure' on bodged installs?

Why is it necessary to run 'dpkg-reconfigure' on bodged installs? I recently became acquainted with the restorative power of dpkg-reconfigure following a bodged installation of the GNU mailutils package. At the end of the installation process a dialog (ncurses?) appears prompting the user to make choices and fill in some blanks. That’s all well and …

Total answers: 1

How to re-run `mailutils` post-install script after making the wrong choice?

How to re-run `mailutils` post-install script after making the wrong choice? I’m running Ubuntu server 22.04, and installed mailutils. At or near the end of my first installation, I got a "window" (ncurses??) that popped up in the terminal, asking what type of install I wanted to do. Being ignorant, I went with the default …

Total answers: 1

Unable to install any packages Ubuntu 23.10

Unable to install any packages Ubuntu 23.10 All of a sudden, I am unable to install anything successfully with apt with the below error: The following packages will be upgraded: linux-headers-6.5.0-10-generic 1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. 75 not fully installed or removed. Need to get 0 B/3,737 kB …

Total answers: 2

I have 2 versions of Emacs installed in Debian. How do I remove one of them?

I have 2 versions of Emacs installed in Debian. How do I remove one of them? This is a (self-contained) follow-up query to this query: Location of Emacs 29 in a Debian 12 system I am on Debian 12. First I installed the Emacs in DebianĀ 12, which defaults to EmacsĀ 28.2. Then I did: sudo apt …

Total answers: 1

Nvidia Cuda Installation Package Conflicts

Nvidia Cuda Installation Package Conflicts I am trying to install Cuda and have been following the Cuda docs but I am at the part where I need to install the cuda package so I run sudo apt-get install cuda. Which outputs: Reading package lists… Done Building dependency tree… Done Reading state information… Done cuda is …

Total answers: 1