date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,418,657,498,000 |
Debian offers a way to compare Debian compatible versions using the dpkg command like so:
dpkg --compare-versions <version> <operator> <version>
For example, if you want to know whether a given version is before 1.0, then you can use:
# gather VERSION from somewhere...
VERSION=0.9
if dpkg --compare-versions "${VERSI... |
rpmdev-vercmp from rpmdevtools package provides similar functionality, but doesn't support specifying the operator, it simply returns 0 if the versions are equal, 11 if version1 is newer, and 12 if version2 is newer.
$ rpmdev-vercmp 1.12 1.13
1.12 < 1.13
$ echo $?
12
You can also install dpkg in Fedora, it is availab... | What is the RPM equivalent to `dpkg --compare-versions ...`? |
1,418,657,498,000 |
We have a software project, which we release as a debian package. The project has a debian/ folder which contains files like changelog compat control copyright rules. We're creating debian packages with the command:
dpkg-buildpackage -us -uc -b --changes-option=-u./dist
which prints a stream of output. What we ne... |
As you point out, the generated .deb files all share a common format: ${package}_${version}_${arch}.deb.
The package name comes from the Package: entries in debian/control; for a full build, one .deb file will be generated for every Package: entry. You can retrieve the values with
awk '/^Package:/ { print $2 }' debian... | Generate dpkg .deb filename |
1,418,657,498,000 |
I have a Debian package say XYZ.deb which copies some file on installation.
As per Debian package policy on package uninstallation only those files will be removed which were copied during installation. Also Debian doesn't remove conf files either.
XYZ package installs some Python scripts which on execution creates .p... |
With regard to your first question:
XYZ package installs some python scripts which on execution creates .pyc
file.Now On uninstallation I want to remove all the files.What would be the
postrm script to cleanly remove package?
In general a suitable postrm script is (I believe) generated automatically by debhelp... | When removing a Debian package, how can I also remove Python *.pyc files? |
1,418,657,498,000 |
I have to find the uname file on a Debian machine, check from which package it is and delete it. When I use which to find it, I get /usr/bin/uname. When I try to check it by dpkg -S uname there is no such file. There is a /bin/uname though. What is the difference between them?
|
There’s no difference; in Ubuntu, bin is a symbolic link to /usr/bin, some Debian systems, and various other distributions, so binaries appear in both locations.
Packages can ship files in either location; to find the package providing a given binary, look for bin/ followed by the binary:
dpkg -S bin/uname
| What's the difference between two uname files |
1,418,657,498,000 |
I try and build my package for Ubuntu but I can't understand the error. I get this
debuild -S -sa
dpkg-buildpackage -rfakeroot -d -us -uc -S -sa
dpkg-buildpackage: source package opsh
dpkg-buildpackage: source version 0.1-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Niklas Ro... |
The error is
dpkg-source: info: local changes detected, the modified files are:
opsh/src/check.t
That means that opsh/src/check.t doesn’t match the contents of opsh_0.1.orig.tar.gz. In Debian packages, any changes to a file outside the debian directory must be reversible. Since you’re using “3.0 (quilt)” packaging, ... | Fail to build for Ubuntu |
1,418,657,498,000 |
I stumbled upon the following answer on Unix stackexchange, where the -plow option is used with dpkg-reconfigure, but I can't find anything about it in the dpkg or dpkg-reconfigure manpages:
http://man7.org/linux/man-pages/man1/dpkg.1.html
http://manpages.ubuntu.com/manpages/cosmic/en/man8/dpkg-reconfigure.8.html
So... |
From the manpage you linked for dpkg-reconfigure:
-pvalue, --priority=value
Specify the minimum priority of question that will be displayed. dpkg-reconfigure
normally shows low priority questions no matter what your default priority is. See
debconf(7) for a list.
And from man 7 debconf:
Another nice featu... | What does "-plow" option do in dpkg-reconfigure |
1,418,657,498,000 |
On a Debian headless server I made an error: NTP and OPENNTP are conflicting. The result is that I cannot update date/time.
Long time ago I was trying to set a NTP client and it looks like I crashed something trying to install both of them.
Both services are not active and service --status-all doesn't list them. Just ... |
It looks like you need to remove /etc/systemd/system/openntpd.service manually:
sudo rm /etc/systemd/system/openntpd.service
Then you should be able to purge openntpd.
| Cannot remove package |
1,418,657,498,000 |
I have a piece of software which I would like to install in a separate hierarchy beneath $HOME/local on an Ubuntu 16.04 machine.
The software is distributed as a Debian package, and the source code is not available (I would happily have downloaded it and compiled it myself had it been).
I don't have (and should not ha... |
No, you haven’t missed anything. The best you can do in such circumstances is use dpkg-deb to extract the contents of the package, and hope they’ll work:
dpkg-deb -x package_x.y.z_x86_64.deb my-private-root
This won’t run any of the maintainer scripts contained in the package; you can extract those using
dpkg-deb -e ... | Installing Debian packages as unprivileged user |
1,418,657,498,000 |
I have a virtual machine that I am trying to use. It doesn't seem to have dpkg or apt-get, so I downloaded the source from http://packages.debian.org/sid/dpkg-dev.
If I run ./configure followed by make I get
$ make
make all-recursive
make[1]: Entering directory `/home/dbadmin/temp/dpkg-1.16.8'
Making all in lib
make[... |
Dpkg is designed to work on Debian and Debian-like distributions. It can be difficult to compile on other systems, and you wouldn't be able to use it effectively anyway. Also, a kernel version of 2.6.18 is ancient (I smell CentOS 5), only an older version of dpkg has a chance of working.
gcc --version gcc (GCC) 4.1.2... | Can't install dpkg on Linux 2.6.18 |
1,418,657,498,000 |
I'm a Windows user and I need to also use Linux distros heavily for work. Installing software has been so difficult with all dependency missing/version not upgraded/OS distro version unmatch.
Not that I don't appreciate the good stuff about Linux. I just want to know the reason. How is Windows handling this? Is it be... |
The short answer is that Windows installers usually include all the necessary libraries as DLL's, which are usually installed into the same directory as the app, and are usually only useable by that one app. This means if you have two or three Windows products which use the same source library (for example, a compres... | Why Linux has so many dependency problems when installing software while Windows doesn't except for few like VC++? [closed] |
1,418,657,498,000 |
I was installing Prey through a .deb file donwloaded from the official website when, all of a sudden I realized that I have so many "unnecessary" installed packages in my Ubunu laptop.
This has been my sequence of actions:
Tried to sudo dpkg -i prey.deb. Didn't work because of missing packets/conflicts:
prey:i386 dep... |
There are a few routines, old wives' tales, for finding and then cleaning out unnecessary packages, in additon to the already suggested debfoster.
(first) but, why is that package installed?
A tool you will want to use while cleaning out packages is aptitude why pkg-name From the aptitude man page:
$ aptitude why kd... | Why do I have so many unnecessary packages? |
1,418,657,498,000 |
I would love to install StackApplet on Debian 6.0.2!
I downloaded 'stackapplet_1.4.0_all.deb' and ran following command:
root@debian:/home/dagrevis/Downloads# dpkg -i stackapplet_1.4.0_all.deb
Selecting previously deselected package stackapplet.
(Reading database ... 132125 files and directories currently installed.)... |
It is now extremely easy to install StackApplet on Debian thanks to a fallback module for AppIndicators that I wrote, which ships with StackApplet. You can install it by downloading the source package for the latest version from its Launchpad page.
From there, you simply need to extract the contents of the archive and... | How to install StackApplet on Debian? |
1,418,657,498,000 |
As I understand it, if a package is auto-installed and has no other packages depending on it, the system should offer to remove it.
why doesn't this happen in this case?
:~$ sudo apt list --installed | grep -i zutty
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
zutty/unstable,now 0.14... |
apt autoremove is more conservative by default than apt install; in particular, apt install installs recommended packages by default, and ignores suggested packages, but apt autoremove takes suggestions into account. (See How do recommends and suggests interact with apt-get dist-upgrade and apt-get autoremove? for det... | why this package is not proposed to me to remove? |
1,418,657,498,000 |
I just upgraded my system from Debian 11 to 12, by following this guide from cyberciti. This system has been kept up-to-date for more than 9 years, so it has been through at least 4 major upgrades (Debian 7 or 8 to 12 today).
During the first run of apt upgrade --without-new-pkgs, I had an error about libudev (sadly I... |
If you want to see a symlink, you mustn’t add /:
ls -ld /lib
should show you a different result.
Debian 12 enforces a “merged /usr”, the “duplication” you’re seeing is normal.
| After upgrading to Debian 12, duplicated files in /lib/x86_64-linux-gnu/ and /usr/lib/x86_64-linux-gnu/ |
1,418,657,498,000 |
When I am building a debian package, often many related packages that are bundled together are being build, and also the foo-dbgsym-* versions and foo-doc packages.
For example, even relatively simple package such as make, will build additional packages:
make-dbgsym_4.2.1-1.2_amd64.deb
make-guile-dbgsym_4.2.1-1.2_amd6... |
dbgsym packages can be disabled using the noautodbgsym build option:
DEB_BUILD_OPTIONS=noautodbgsym dpkg-buildpackage -us -uc
It’s also possible to build only architecture-dependent or architecture-independent packages, by changing the --build option on dpkg-buildpackage.
Other than that, there’s no generalised way o... | building Debian package without associated packages that are bundled together |
1,418,657,498,000 |
On a debian buster machine without internet access, most of apt command (like apt install/remove/autoremove) show the following error :
The following packages have unmet dependencies:
systemd : Depends: libsystemd0 (= 241-7~deb10u6) but 241-7~deb10u8 is to be installed
Recommends: libpam-systemd but it is ... |
I’ll explain how the system ended up in this situation (at least, my theory), and how to avoid it in future; but first, let’s see how to fix it.
I suspect that your setup is too broken for apt-offline to be able to fix things in a reasonable number of steps. You would be better off downloading the first full DVD of th... | apt broken after trying to update and install without internet |
1,418,657,498,000 |
I've gone to upgrade my machine as I do every day and I've received the following errors:
$ sudo apt-get update && sudo apt-get upgrade
Hit:1 http://ftp.uk.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 h... |
You can free up some space by deleting the 4.9 kernel:
sudo apt purge linux-image-4.9.0-11-amd64
| Errors when trying to upgrade Linux kernel |
1,418,657,498,000 |
All apt-like commands failed to create the lock file, because /var/lib/dpkg/ doesn't exist. Also, /lost+found/ has contents:
pi@pi-top:~ $ sudo ls -al /lost+found/
total 102456
drwx------ 11 root root 16384 Apr 3 16:26 .
drwxr-xr-x 23 root root 4096 May 5 17:00 ..
-rw------- 1 root root 104857600 Apr 3... |
I'm sorry, but at this stage, you're probably better off restoring from a clean backup. When fsck places so many directories in /lost+found, that's a sign that there's been a lot of corruption. It's quite possible that there's more corruption, but because it's in the file contents rather than in metadata, fsck has no ... | /var/lib/dpkg/ disappeared after fsck |
1,418,657,498,000 |
Here on a Debian system I use mainly gpg2. Some (Debian packaging/signing) tools use gpg1 internally, and changing them as it should be would be infeasible.
Both my gpg versions are using the same work directory (~/.gnupg) and their databases / configuration seem mainly compatible. An exception for this is the handlin... |
GnuPG 1.4, 2.0 and 2.1 all support the "good old" pubring.gpg file for storing public keys. As long as a pubkey.gpg exists, also GnuPG 2.1 will continue to use it and not create a public keyring in the new keybox format.
There are differences with respect to private keys, though. While GnuPG 1.4 and 2.0 both store pri... | Can I use GnuPG 2 and GnuPG 1 concurrently, seeing the same keys? |
1,418,657,498,000 |
When setting up/rolling up multiple transient VMs, I would like to keep the used disk space at a minimum, not installing the documents and corresponding manuals of the standard software packages (and possibly other directories).
However, since Debian does not offer separate packages, and all comes in the same .deb pac... |
Coincidentally (or not), the package manager, namely dpkg, can be instructed to ignore placing files in specific directories while installing packages.
To do that, create in the /etc/dpkg/dpkg.cfg.d directory a file 01nodoc having as contents:
path-exclude /usr/share/doc/*
path-exclude /usr/share/man/*
apt and aptitu... | Saving disk space in VMs |
1,418,657,498,000 |
Trying to install letsencrypt on Debian Jessie, I have run into the following situation I don't quite understand. I already have installed python-acme:
dpkg -l | grep acme
ii python-acme 0.6.0-1~bpo8+1 all ACME protocol library for Python 2
Now I'm trying to install python-letsencrypt:
apt-get install python-lets... |
I suspect some issue with the transition to certbot and the use of virtual packages... (Until recently, versioned dependencies weren't supported on virtual packages.)
Since certbot is now in the Jessie backports, and replaces letsencrypt, I'd recommend installing that instead:
apt-get install -t jessie-backports certb... | dpkg complains about a missing package which is already installed |
1,418,657,498,000 |
dpkg -S /usr/share/doc/tasksel-data # fine
dpkg -S usr/share/doc/tasksel-data # fine
dpkg -S /share/doc/tasksel-data # not found
dpkg -S share/doc/tasksel-data # fine
dpkg -S are/doc/tasksel # fine
Why on Earth does the third line above fail? Note that line one starts with a slash... |
This is not documented as far as I can tell but a leading / makes dpkg treat the argument as a path and not a pattern. In other words, if you tell it to search for something that starts with /, it assumes it should look for a file in one of the installed packages with that exact path.
You can confirm it easily enough ... | Behavior of dpkg -S when the argument starts with a slash |
1,418,657,498,000 |
I installed tcl-doc. Prior to installation "man tcl" gave nothing. Now it gives a page.
When I do
"dpkg -L tcl-doc" I get
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/tcl-doc
/usr/share/doc/tcl-doc/tcltk-policy.html
/usr/share/doc/tcl-doc/tcltk-policy.pdf
/usr/share/doc/tcl-doc/README.Debian
/usr/sha... |
tcl-doc recommends tcl-8.5-doc on wheezy or later and tcl8.4-doc on squeeze which contains the manpages. To see the included manpages have a look at the filelist for tcl8.4-doc.
So tcl-doc does not contain any manpage but the recommends is installed automatically by the package manager which contains the manpage.
| Where is tcl-doc man page stored? |
1,418,657,498,000 |
I don't understand how or why apt-get install failed. It mentions ssmtp which is simple smtp which I use to send mail from my server to my Google apps account. I don't understand what is wrong or how to fix it.
I am using debian squeeze.
# apt-get install ffmpeg
...
Setting up libswscale0 (4:0.5.2-6) ...
Setting up ff... |
I'm guessing that you set your system's host name to "debian" when setting it up. The installer should have added an entry for that to /etc/hosts, but it seems to not be there any longer.
Add an entry like this, if you don't see a line with "debian" on it already:
127.0.0.1 debian
You'll have to start your text ed... | Why did 'apt-get install ffmpeg' fail? |
1,418,657,498,000 |
Install fine. Works fine. Next day the logo and apps menu entry is gone. Doesn't seem to matter what I do. On installation, GDebi refused to install the package, and crashed instead, so I used dpkg -i.
As for the logo and apps menu entry, I suppose I'll just have to glue it in place. Sorry Firefox.
I install the late... |
I've heard the same complaints from several people who tried to use recent development builds of Google Chrome. You probably should use a more stable version of it (or use the Chromium browser provided in the Ubuntu repositories, which is the open source version of Google Chrome). Or otherwise you can wait until Goo... | dpkg and google-chrome don't get along with gnome |
1,418,657,498,000 |
I've just completed a simple source code modification & rebuild on a Raspberry Pi OS - bullseye machine. Because this is new to me, I'll list the steps I followed in an effort to avoid ambiguity:
$ dhcpcd --version
dhcpcd 8.1.2 # "before" version
$ sudo apt install devscripts # bui... |
You can either add the relevant lines at the top of debian/changelog (find here details on the contents of that file).
You can duplicate the current top stanza and change the version number (making an useful log comment is a good idea).
Alternatively you can use the dch tool (from devtools):
dch --local your_package_n... | How to set a new version number in a .deb package I've built |
1,418,657,498,000 |
I am using:
dpkg-query -W -f='${package}\t${version}\t${architecture}\n'
to list installed packages but it also shows packages marked for removal i.e. with status rc.
How do I get only installed packages?
|
dpkg-query doesn’t support filtering on status, but it can output packages’ status, which allows them to be filtered:
dpkg-query -W -f='${Status}\t${package}\t${version}\t${architecture}\n' | grep "^install ok installed"
dpkg -l is based on dpkg-query and thus can’t filter on status itself either.
aptitude provides m... | dpkg-query to show installed packages only and not "rc" |
1,418,657,498,000 |
I'm wondering specifically if it remains locked when only installing one package, and running its postinst.
|
dpkg places a file lock on /var/lib/dpkg/lock when a package management process starts and only removes the lock when the package management process ends.
Please review the Debian Wiki on dpkg and the dpkg manpage for more information on dpkg itself. I will also include a link to dpkg.org which has more specific docu... | When exactly does dpkg start and stop being locked? |
1,418,657,498,000 |
When I tried to sudo apt upgrade my Raspberry Pi system running Raspbian Buster, dpkg errored out when it got to the configuration of openssh-server:
$ sudo apt upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was auto... |
It looks like the problem is caused by a chicken-and-egg problem between perl and debconf. Debconf is an optional feature allowing packages to get configuration questions at the start rather than in the middle of the installation: it's not vital, so that's the one to move away.
On a Debian 9 or 10 system, its invocati... | Dpkg can't load '/usr/lib/arm-linux-gnueabihf/perl/5.28/auto/Fcntl/Fcntl.so' |
1,418,657,498,000 |
When I install packages via apt-get install <package> or aptitude install <package> and remove them afterwards with apt-get purge <package>; apt-get autoremove --purge, my system is not in the same state as before. It still has additional packages installed.
The additional packages are marked as automatically installe... |
The reason autoremove isn’t removing as much as you expect is that the packages which were installed automatically satisfy weak dependencies of other packages you already had installed. In your case, dpkg-dev is already installed, itself as an automatic dependency; because it recommends the virtual c-compiler package,... | How to prevent APT from keeping packages I didn't install? |
1,418,657,498,000 |
I'm using a fresh beaglebone debian 7.9 armhf image and need to do some additional setup. Despite EoL being May 2018, the apt sources have still been available until recently. They are no longer available and are yet in the archives, either, at least not here.
So what is my best option for installing a few packages on... |
From the comments above.
The packages can be installed from the debian wheezy archive.
Change /etc/apt/sources.list to
deb http://archive.debian.org/debian/ wheezy main contrib
then install the missing packages with
apt-get update
apt-get install ntp ftp openvpn libffi-dev
| How to install a few specific packages one time on Debian Wheezy (after EoL) |
1,418,657,498,000 |
There is a troublemaking empty file (md5sums of kernel 4.19.1) left
on my ubuntu system, with has strange owner/group/date/attributes
How to fix or workaround this defect file?
$ uname -a
Linux olly-ryzen-pc1 4.20.10-042010-generic #201902150516 SMP Fri
Feb 15 10:19:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
stat
$... |
As fsck does not find anything wrong, you may need to use debugfs to clear the inode. Note that I last used debugfs years ago, so take care! Read the manpage first to see what's possible with this tool.
Boot from a rescue medium, and run
debugfs /dev/sda2
You can try to use debugfs's rm command to remove the file:
rm... | Error when move or delete file on ext4 in dpkg info directory |
1,418,657,498,000 |
With Raspbian and a 64-bit kernel, I am fetching packages from the following sources:
deb [arch=armhf] http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
deb http://deb.debian.org/debian stretch main contrib non-free
deb http://deb.debian.org/debian stretch-updates main contrib non-free
Attem... |
This is mandated by the multiarch specification:
multiarch packages are required to be kept in lockstep; i.e., an implicit Breaks: ${self}:other (!= ${binary:Version}).
The reason is that packages always ship some arch-independent files in shared directories (/usr/share/doc), so the package management system has to ... | APT version conflicts across different architectures even with Multi-Arch: same? |
1,418,657,498,000 |
I'm using Debian 9.5 and recently uninstalled a package (mariadb), now as I try to install a new package, I keep getting this:
E: Unable to correct problems, you have held broken packages.
I have tried these commands but no result:
sudo dpkg --configure -a
sudo apt-get install -f
apt-get install --fix-broken
... |
You have testing in your repositories, with priority 500, the same as your stable repositories; this effectively means that you’re running Debian testing, not Debian 9.5. (Thanks for helping test the next release of Debian!)
mysql-server is currently not available in testing, so apt install mysql-server (or variants t... | APT holds broken install |
1,418,657,498,000 |
I get the following error when running the command:
$ sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoclean -y && sudo apt-get autoremove -y
Hit:1 http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu xenial InRelease
Hit:2 http://gb.archive.ubuntu.com/ubunt... |
Similar to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768949
I was able to fix my broken upgrade by doing
sudo systemctl disable avahi-daemon
sudo apt upgrade
sudo systemctl enable avahi-daemon
| dpkg: error processing archive |
1,494,363,560,000 |
In Debian Jessie's /etc/cron.d/ there's a file called .placeholder, the contents of which claim:
# DO NOT EDIT OR REMOVE
# This file is a simple placeholder to keep dpkg from removing this directory
Now, .placeholder files are mentioned various places, but under what conditions would one be necessary? When would dpkg... |
This is probably left over from historical behaviour in dpkg. Nowadays removal is handled in remove.c, and directories are removed only if they are empty and the current package (being removed) is the only one using them (this is determined in help.c, in dir_is_used_by_others() and dir_is_used_by_pkg()).
Looking at th... | When will dpkg delete directories? |
1,494,363,560,000 |
Installing python gives a dpkg error.
I have done these commands, output below
$ sudo apt-get install python3.4
$ sudo dpkg -C
$ sudo apt-get check
$ apt-cache policy libglib2.0-dev
$ sudo dpkg --configure libglib2.0-dev
$ sudo dpkg --audit
$ sudo apt-get install cdrecord mkisofs slib libident spice-proto... |
0 upgraded, 6 newly installed, 0 to remove and 488 not upgraded.
The problem here is that you are in-between several upgrade paths for every package. You are not using stable, nor testing, and that brings about problems. You should upgrade as many packages as possible to stable first:
sudo apt-get -t stable dist-upg... | Installing python gives dpkg error |
1,494,363,560,000 |
Please someone explain to me this, because it makes no sense:
$ dpkg -i freeling-3.1-quantal-x86_64.deb
Selecting previously unselected package freeling.
(Reading database ... 283003 files and directories currently installed.)
Preparing to unpack freeling-3.1-quantal-x86_64.deb ...
Unpacking freeling (3.1) ...
dpkg: d... |
You need the package called libboost-program-options1.49.0. It can be any version greater or equal to 1.49, but it needs to be that package name. libboost-program-options1.54.0 is a different package name.
There are different package names because they have incompatible ABIs, so an executable compiled for 1.49.0 won't... | dpkg won't install package with dependencies that have newer version |
1,494,363,560,000 |
Let's say I installed foo. The foo package depends on bar, so bar was installed to satisfy foo's dependency.
How can I get Ubuntu/APT/dpkg to tell me that bar is installed because foo is installed?
I know aptitude has a way to do this. But I can't for the life of me get it to switch the bottom pane to the "why install... |
From the command line you can run
aptitude why bar
This seems to do whatever it takes to provide an answer, meaning it will never tell you "explicitly installed" and will instead find a recommends or suggests that the package fulfills.
| How can I know the dependency packages for an installed package? |
1,494,363,560,000 |
I want to install a systemd unit using debhelper and dh_installsystemd.
My control file:
Package: prometheus-wireguard-exporter
Version: 3.6.3-###CI_JOB_ID###
Maintainer: Ronny Forberger
Architecture: amd64
Build-Depends: debhelper, dh-systemd (>= 1.5)
Description: Prometheus Wireguard Exporter
My rules file:
#!/usr/... |
If you want to benefit from debhelper, you need to build from a source package, instead of building a binary package directly:
drop the debian symlink to DEBIAN
rename DEBIAN to debian
rename prometheus_wireguard_exporter_amd64 to prometheus-wireguard-exporter
add a debian/changelog file (dch --create)
build your pac... | Debian package rules file: debhelper doesn't seem to be called as expected |
1,494,363,560,000 |
I have created a deb package that includes a postrm script that fails to be executed.
The error message says that the script cannot be found but it is well placed, it can be run manually with bash and the execution permissions seem ok. What else should I check to find out the cause of the failure?
Here there is an exa... |
The postrm script was not working because it had been created on a windows machine with CRLF line-endings.
I had assumed that was not the case because I could run it with bash. However /bin/sh in my system is pointing to dash so I could not directly run the postrm script.
Thanks to @cas comment I did a proper check an... | Postrm script fails to execute |
1,494,363,560,000 |
I have a PC with WSL2/Ubuntu 20.04. I recently tried installing a package on it (the Dell srvadmin package). The installation fell over half way through as WSL2 doesn't have systemd on it.
This has left the package in a half-installed/broken status and I can't remove/purge etc. it with wither dpkg or apt e.g.
tim@DESK... |
Edit /var/lib/dpkg/info/srvadmin-hapi.prerm, and insert set -x as the second line (i.e. immediately after the #! line). Editing this script will need to be done as root.
Then run dpkg -r --force-all srvadmin-hapi again. This will show you what's happening inside the .prerm script, and exactly which command is fail... | Manually remove package which can't be removed with apt/dpkg |
1,494,363,560,000 |
TLDR
I issued a dpkg -i PACKAGE of a newer version of PACKAGE from a newer version of the distrib. It depends on a new libc6 package, thus it failed installing.
Now the package blocks the whole apt system.
I just want the system to understand that it can stop wanting to install this package. How would I do that ?
Long... |
I don’t think any hack should be necessary; asking apt to install the current Debian 10 version should be enough:
sudo apt install mawk/buster
Alternatively, ask dpkg:
sudo dpkg -i /var/cache/apt/archives/mawk_1.3.3-17+b3_amd64.deb
(assuming you still have the package in your APT cache).
| How to abort installation of an uninstallable package with debian packaging |
1,494,363,560,000 |
I'm currently creating a custom live-image installer. Anyways, I'm taking a look at all other packages in the binary stage and many (if not all) are using debconf to show progress bars and take inputs, etc.
My problem is none of the debconf manuals states about commands like db_progress nor are there any helpful infor... |
The debconf commands are supposed to be described in man debconf-devel (look at it on your system, the online version is poorly-formatted), but db_progress isn’t mentioned there.
As far as I can tell, the only description of progress-bar handling is in Debconf::ConfModule. You can see it in use in the demo sample.
| Where are the manuals for debconf specific commands? |
1,494,363,560,000 |
I have a package that I am installing directly from a .deb file by running sudo dpkg -i. After running that, I am presented with the list of unmet dependencies for the package. When I run sudo apt-get install -f to install the dependencies, apt-get instead removes my package without explaining why.
Is there a way to s... |
I was able to figure out what was going wrong by running apt-get with a debug option:
sudo apt-get -o Debug::pkgProblemResolver=true install -f
This showed why the package was being removed. In my case, apt-get couldn't find a certain dependency in the repositories.
| Can I see why apt-get install -f is removing my package? |
1,494,363,560,000 |
I've been experiencing this problem the past few days with the gnuplot packages.
First of all, i execute dpkg --configure -a and this is the output:
Processing triggers for tex-common (6.09) ...
Running mktexlsr. This may take some time... done.
dpkg: dependency problems prevent configuration of gnuplot-qt:
gnuplot-... |
Wow, you’ve got an old gnuplot-tex package causing problems. Remove that:
sudo apt purge gnuplot-tex
and everything should return to normal. If the above doesn’t work because of the missing gnuplot-data, use the following instead to remove gnuplot-tex while installing gnuplot-data:
sudo aptitude install gnuplot-tex_ ... | Getting errors while trying to install a package in Kali Linux |
1,494,363,560,000 |
Is there a way to prevent gdebi (on the command line) from reinstalling the same version of a .deb file that is already installed?
For example, if I do
$ gdebi -n example.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading state information... Done
(Reading database ..... |
Use apt install: when given the filename of a package file, with a path, it will behave in the same way as gdebi if the package isn’t already installed with the same version, but it will skip installing the package if the installed version is identical to that contained in the given file.
apt install ./example.deb
| gdebi: Prevent reinstalling the same version of a package? |
1,494,363,560,000 |
I have both 3.2 and 2.6 installed on a server, but neither sudo apt-get dist-upgrade nor sudo apt-get install linux-image-3.2.0-4-amd64 can upgrade the kernel.
user@server:~$ uname -a
Linux server 2.6.32-5-xen-amd64 #1 SMP Tue May 13 18:41:58 UTC 2014 x86_64 GNU/Linux
user@server:~$ lsb_release -a
No LSB modules are ... |
My hosting provider doesn't use the normal Debian grub setup where GRUB_DEFAULT is declared in the file /etc/default/grub. For me, I had to manually edit the file /boot/grub/menu.lst and change the default directive to 0.
Make sure to ask your host if they've got an alternative setup for grub.
| Stuck on old kernel when trying to upgrade from Squeeze to Wheezy |
1,494,363,560,000 |
This comes from how to apply patch in a debian package? . Now after building the packages, I have no idea whether the packages got built correctly or not. I did see this in the parent directory -
┌─[shirish@debian] - [~/games] - [5870]
└─[$] cat dpkg_1.18.15+nmu1_amd64.changes
Format: 1.8
Date: Mon, 21 Nov 2016 01:0... |
The maintainer has only asked you to check whether the supplied patch fixes things. If dpkg with the patch allows you to install libconfig-model-perl without the errors you were getting before, that would suggest that the patch fixes the issue. If it doesn't, the patch also includes more verbose output which should he... | Building a .deb package reproducibly |
1,494,363,560,000 |
I saw Debian Jessie - dpkg / apt intall, update and uninstall broken and unlike that one, python is well and good herein.
[$] ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 Jun 3 20:09 /usr/bin/python -> python2.7
There are 3-4 packages which are making updates/upgrades on the system next to impossible.
[$] sudo dp... |
You can try reinstalling from snapshots; you'll find the appropriate version of libconfig-model-perl there:
wget http://snapshot.debian.org/archive/debian/20160924T233848Z/pool/main/libc/libconfig-model-perl/libconfig-model-perl_2.092-1_all.deb
sudo dpkg -i libconfig-model-perl_2.092-1_all.deb
Given the dpkg-maintscr... | Debian stretch - update broken - seems buggy dpkg |
1,494,363,560,000 |
In this question the user is getting the error "not found". I realized that the error is "not found" instead of "command not found".
Are these two errors different? I'm not sure if I've just never paid attention to this before or if this is different.
Here's an example:
/etc/cron.daily/apt:
/etc/cron.daily/apt: 91: ... |
Its the difference between how bash and dash handle cases when a command is not found.
In bash, there is a function named command_not_found_handle :
$ type command_not_found_handle
command_not_found_handle is a function
command_not_found_handle ()
{
if [ -x /usr/lib/command-not-found ]; then
/usr/lib/co... | What is the difference between the error "not found" and the error "command not found" are they the same? |
1,494,363,560,000 |
How do I resolve the following error to get rsync installed?
unable to create '/usr/bin/rsync.dpkg-new' (while processing './usr/bin/rsync'): Input/output error
Full log follows:
ubuntu@explorer:~$ uname -a
Linux explorer 3.8.2-g659a590 #1 SMP PREEMPT Tue Sep 24 02:38:40 PDT 2013 armv7l armv7l armv7l GNU/Linux
ubunt... |
The most likely cause of the Input/Output Error would be an actual disk I/O error.
See if the kernel is reporting any disk I/O errors or filesystem errors by looking at the recent entries in your dmesg kernel log buffer:
dmesg | tail -30
| Cannot install rsync (unable to create...Input/output error) |
1,494,363,560,000 |
I wanted to uninstall the libboost libraries. I wrote in the console:
sudo apt-get remove libboost-*
But looking more precisely at the console output, I noticed apt-get was ready to remove several packages that looks completely unrelated to libboost
Although I may not use once in a month compiz, ubuntu-desktop, or u... |
The dependency tree is NOT corrupted.
using apt-rpdepends and the command line I got:
$ sudo apt-rdepends unity | grep boost
Reading package lists... Done
Building dependency tree
Reading state information... Done
Depends: libboost-serialization1.46.1 (>= 1.46.1-1)
libboost-serialization1.46.1
So indeed, all t... | Is my apt-get dependency tree corrupted? |
1,494,363,560,000 |
I am using Linux Mint 12 and currently have the Mate desktop running. The icon in the upper right showed their were updates. Tried to do it and it said that
The package system is broken
Check if you are using third party repositories. If so disable them,
since they are a common source of problems. Furthermore run ... |
A quick and dirty fix, was hack the dpkg records,
Since /usr/share/gnome-background-properties/linuxmint-lisa.xml belongs two packages, you're going to remove it from one,
Goto /var/lib/dpkg/info/mint-artwork-kde.list, remove that xml filename from the file.
And redo apt-get -f install
Notice in the future this packag... | Update is telling me my package system is broken - the instruction to fix it doesn't work - what to do? |
1,494,363,560,000 |
me@friedly_server:~$ aptitude search samba-tools
i samba-tools - Samba testing utilities
me@friendly_server:~$ aptitude show samba-tools
Package: samba-tools
New: yes
State: not installed
Automatically installed: no
Version: 2:3.6.6-3
P... |
When you run aptitude search, you are told that some package called samba-tools is installed. When you run aptitude show, you are given information about the candidate version of samba-tools, i.e. the version that aptitude install (or apt-get install) would install. On your system, the candidate version is apparently ... | Aptitude Search reports package installed, while Aptitude Show reports it not installed - how is that possible? |
1,494,363,560,000 |
Edited:
Operating System: Debian GNU/Linux 11 (bullseye)
Debian version: 11.5
apt history and dpkg history
I tried to install multiple packages using dpkg somefile.deb but it hasn't completed as having dependency problems due to lack of the internet connection.
Now that I run 'apt update' or 'apt-get update', I get... |
The culprit is package libstdc++6 which was upgraded to Debian testing/sid, preventing apt-get, which is a C++ application, to work anymore.
2022-10-18 10:37:01 upgrade libstdc++6:amd64 10.2.1-6 12.2.0-5
2022-10-18 10:37:01 status triggers-pending libc-bin:amd64 2.31-13+deb11u4
2022-10-18 10:37:01 status half-configu... | apt/apt-get update leads to error |
1,494,363,560,000 |
I am studying for LPIC exam and one of the tasks in the lab is to find details about package with dpkg -p, concretely about vim with dpkg -p vim. In the solution, the command produces information about the package, but my output is:
root@home:~# dpkg -p vim
dpkg-query: package 'vim' is not available
Use dpkg --info (=... |
In a distant time, dpkg wasn't used by apt which didn't exist yet but by other front-ends, like dselect. Those tools took care of updating the available list of packages which ends in the file /var/lib/dpkg/available eg when running dselect update. dpkg -p's feature depends on an up to date available list file.
That's... | dpkg -p is not working for some packages (like vim) |
1,494,363,560,000 |
I recognised that after purging some packages (e. g. texlive-lang-japanese), directories remain because they contain a file named .uuid (e. g. /usr/share/fonts/opentype/ipaexfont-gothic/.uuid). It contains only a single UUID which seems to vary for every .uuid file, but I couldn't find that UUID anywhere.
What's the p... |
This is a known bug: Debian bug #897040 fontconfig: .uuid files in font directories not removed during purge
The files are internal fontconfig cache files and should be removed when removing the font packages. You can remove the files manually, there should be no problem with that.
| Files ".uuid" remain after package removal |
1,494,363,560,000 |
I'm trying to cross-build a Debian/Ubuntu package on a running amd64 system to mips arch. I've tried several methods, from pubilder to sbuild, but I keep failing. About the latter, on a freshly installed Debian 9 I do:
apt-get -y install sbuild
sbuild-createchroot --arch=mips --make-sbuild-tarball=/srv/chroots/wheezy-... |
Cross-building only became nice and easy with Debian 9 as a target; it’s do-able with Debian 8 too, but targeting Debian 7 is a bit too complex. (EmDebian was dropped before Debian 7.)
There is however a simple setup to build mipsel Wheezy packages on any system capable of running QEMU, and building packages there wil... | Building mips package on amd64: Exec format error chroot: failed to run command 'mount' |
1,494,363,560,000 |
I maintain a native Debian package which installs an application and an initial SQLite database. I expect the application to edit the database.
How do I prevent upgrades from replacing the database?
I thought conffiles would be the solution, but the Debian's maintainer guide says:
If your program uses configuration ... |
If you’re really talking about shipping a database, and not the configuration files to access a database, the answer is somewhat in the problem statement: a database isn’t a configuration file.
The best alternative (in my opinion) is to install the database in maintainer scripts, not directly as an installed file in t... | Debian conffiles alternative |
1,494,363,560,000 |
For example, if I run the following command dpkg -l ‘*compiz*’ the output is as follows:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Descr... |
The p is NOT what the packaging system "thinks" the desired status should be.
It's what you, or someone else, has TOLD it that it should be - e.g. with a program like aptitude or synaptic, or even a simple utility like apt-mark.
It is marked to be purged the next time an apt-get dselect-upgrade, apt-get dist-upgrade, ... | How is the desired status in the Debian Package Manager determined? |
1,494,363,560,000 |
Operating System: Debian GNU/Linux 8.8 (jessie)
Kernel: Linux 3.16.0-4-amd64
Architecture: x86-64
I have several Debian servers.
Each have included in default repository nginx version 1.6.
After updating from original nginx repository, receive same error on all servers:
Preparing to unpack .../nginx_1.12.0-1~jessie_a... |
Become root:
sudo -i
or:
su
2017-06-26 19:56:31 status half-configured nginx:all 1.6.2-5+deb8u4
Configure packages:
dpkg --configure -a
Fix broken packages:
apt-get install --fix-broken
Proceed with upgrade:
apt-get dist-upgrade
| How to debug dpkg error code (1) on upgrade of deb package? |
1,494,363,560,000 |
I installed 3.6 from source to /opt in Ubuntu 16.04 thinking that I was avoiding startnig any python conflicts this way.
Next time I tried to run apt-get update I ran into an error that says...
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
...
when I run ... |
Installing purely from source wouldn't interfere with dpkg, you must have somehow installed a package at some point.
You need to re-install the python package:
apt-get --reinstall install python=2.7.11-1
This should restore your Python setup and stop asking you to remove lots of packages. You'll probably need to re-... | install python 3.6 from source, now dpkg is messed up |
1,494,363,560,000 |
Can you help me with this problem please? I have updated (apt-get upgrade) my system Debian GNU/Linux 7.6 (wheezy) but for problem with disk space operation failed. After I have released disk space, but MongoDB does not start. I have tried several procedures.
First apt-get --purge remove mongodb-org:
invoke-rc.d: unkn... |
Option 1:
As you seem to have half-configured mongodb-org-server and unpacked but (not configured) mongodb-org, please try the following command:
dpkg --configure mongodb-org-server mongodb-org
If also that fails for dependency issues, try this:
dpkg --configure --force-depends mongodb-org-server mongodb-org
Option ... | After upgrade MongoDB it does not start and log is empty |
1,494,363,560,000 |
On my Elementary OS system, dpkg reports a number of kernel packages that aren't installed. (I did an apt-get purge on them previously.) I'd like to have them forgotten about entirely, but I can't figure out how to get them that way.
For example:
elementary:~$ dpkg -l linux-*-3.2.0-51*
Desired=Unknown/Install/Remove/P... |
According to your apt-cache policy output, they're still in the archive (aka available), so dpkg won't forget about them. So the short answer is there isn't a way to get rid of that record.
The long answer is you could probably edit /var/lib/dpkg/status (it's a plain-text file) to do it. Make sure to keep a backup. Br... | How can I purge old kernel packages in Elementary OS? |
1,494,363,560,000 |
I'm trying to create a Debian package that doesn't delete an empty directory after it's purged. Specifically, I'm creating my own package containing some CA certificates I trust.
I'm following Debian's suggested method of installing the certificates to /usr/local/share/ca-certificates. The problem I'm running in to i... |
Add postrm script:
#!/bin/sh
set -e
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# Recreate the /usr/local/share/ca-certificates directory, since we are
# ignoring Debian Policy by intentionally installing here. Removal of
# ca-certificates-local removes this ... | Creating a Debian package that does not remove directories after it's purged |
1,494,363,560,000 |
In Debian Wheezy, I'm trying to install the vmware-view-client package from the Ubuntu Software Center (because the open client won't work for my situation), but dpkg can't handle it. Synaptic says I have libssl1.0.0 installed (1.0.1c-4, along with -dev and -doc), but I get the following error message:
$ dpkg -i vmwar... |
0.9.8 is the ABI version (aka soversion), so, yes, you need to install the older version. The 0.9.8 and 1.0 ABIs are not compatible.
I'd suggest installing libssl0.9.8 in the normal manner, e.g., using the GUI or aptitude install libssl0.9.8. 0.9.8 is available in both 12.04 and 12.10 according to http://packages.ubun... | libssl1.0.0 doesn't satisfy libssl0.9.8 dependency? |
1,494,363,560,000 |
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 good, and I suppose if you're prof... |
The postfix package uses debconf for its configuration. You can think of this as a kind of registry in Debian; it’s used by most packages which need configuration during installation. You can see the values it currently stores by running debconf-get-selections. A package can determine during installation whether a va... | Why is it necessary to run 'dpkg-reconfigure' on bodged installs? |
1,494,363,560,000 |
I recently installed Debian 12. Apt was working, but was complaining about a not fully configured linux-image. I tried to remove the image and upgrade, but now I'm unable to us apt or dpkg to remove or install anything. It has issues with a "not fully installed or removed" package, runs into an error while attempting ... |
For the solution in the linked question to work, postinst.d/z50-raspi-formware must first be reinstated.
Create /etc/kernel/postinst.d/z50-raspi-firmware consisting of two lines:
#!/bin/sh
true
Make it executable:
chmod a=rx /etc/kernel/postinst.d/z50-raspi-firmware
Then purging should work:
apt purge raspi-firmware... | apt/dpkg not working due to linux-image/firmware problems |
1,494,363,560,000 |
I tried to build a Debian package, which depends on Nodejs. I have specified my dependency in the control file of the package this way:
Depends: nodejs (>= 10.24.0)
But when I try to install the package, I get a dependency error:
dpkg: dependency problems prevent configuration of xxx:
xxx depends on nodejs (>= 10.24... |
The workaround here is to add a tilde:
Depends: nodejs (>= 10.24.0~)
See What does a tilde (~) mean at the end of a dependency requirement in a deb file or in apt? for details.
| How to depend only on the upstream version of a Debian package? |
1,494,363,560,000 |
vrms [1] returns "No non-free or contrib packages installed on Hostname! rms would be proud." and dpkg-query -W -f='${Section}\t${Package}\n' | grep ^non-free [2] returns nothing on the terminal.
However, after running
packages=`dpkg --get-selections | awk '{ print $1 }' | sed 's/:amd64//'`
for package in $packages;... |
Execute dpkg --get-selections | grep deinstall
If same packages in the output are returned, purge them with apt-get purge PACKAGENAME
And repeat your steps over again
| Terminal commands show there is no non-free software on the system |
1,560,767,500,000 |
For a little something I made (that used to be a word-of-mouth thing only and that's interesting to just a very narrow, and usually non-technical, user base), I'd like to be able to provide a .deb file for easier installation.
The something doesn't have any actual files that it needs to install in the system. Instead ... |
One reasonable way of going about this is as follows:
divert all the files you modify, so that dpkg no longer replaces them, but instead installs them with a different name;
make your Rakefile do its work using the newly-named files instead of the originals, reading the newly-named files and writing the originals;
in... | Way to have a Debian package reinstall when dependency updates? |
1,560,767,500,000 |
After trying to install pdfshuffler (from Debian repo) an error related to dependency problems appeared. It seemed that python-pypdf2 package was needed, so I tried to install it but I get to the same error message. After looking up for similar problems, I tried with apt-get clean, install-f, autoremove, etc but it wa... |
So it looks like file optparse.py from your Python 2.7 installation got corrupted. More specifically, it seems to have been overwritten and replaced by a copy of optparse.py from Python 3.
The output of dpkg -V shows many fields checking owner, group, mode, etc. The 5 in the output indicates that the MD5 checksum of t... | dpkg returns error when installing python package (Debian) |
1,560,767,500,000 |
I would like to be able to list all the NEWS from packages that have been upgraded since I last ran the script/command. This would then likely be run in a cron job once per week in order to provide a summary of any upgrade information.
The apt-listchanges command looks like what I want, but I can't seem to get it to b... |
I can think of two approaches which don’t involve tweaking apt-listchanges too much. Both rely on the default apt-listchanges hook in apt; check that /etc/apt/apt.conf.d/20listchanges exists on your system. This works nicely because apt-listchanges is run with the list of packages which apt is about to upgrade, and ca... | List all NEWS from previously updated packages |
1,560,767,500,000 |
How would you resolve this error when you run sudo apt-get dist-upgrade?
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 ... |
You don't have a dependency problem. You have a package configuration problem.
The relevant part of the transcript is:
/etc/kernel/postinst.d/zz-update-grub:
/usr/sbin/grub-mkconfig: 1: /etc/default/grub: ]#: not found
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 127
Everything after tha... | How to resolve dpkg dependencies for linux kernel? (Debian) |
1,560,767,500,000 |
I accidentally ran apt install '*'. Although it didn't install anything due to conflicts (e.g. multiple versions of vim editor), all installed packages lost their "automatic" property, which means I cannot enjoy APT's auto dependency check anymore. That is, if I remove vim, apt no longer prompts me to remove vim-runti... |
On Debian and derivatives, the information about manual vs automatic installation is stored in /var/lib/apt/extended_states. There are no automatic backups and no logs. If you have a backup of that file, restore it.
If you don't have a backup, first make one in case you make up. Then, for each package, change the line... | Accidentally run "apt install *" now all packages are marked as "manually installed" |
1,560,767,500,000 |
I installed gdm on my vps and now I want to remove it but get this error:
root@server2:/etc/init.d# apt-get remove gdm3
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
gdm3
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
... |
when removing the package, some cleanup scripts are run. it seems like one of these fails (namely /etc/init.d/gdm3), rendering the un-installation incomplete.
the proper way to fix this, is by checking why the script fails.
try running
/etc/init.d/gdm3 stop
manually, and see why it fails. fix the underlying error, th... | Gdm uninstallation fails (“pre-removal script returned error”) |
1,560,767,500,000 |
I'm not able to install, update or do anything else with apt-get, aptitude, dpkg and so on.
The lock-file /var/lib/dpkg/lock exists from boot-time on. When I delete it and run apt-get update, it prints out, that dpkg has been interrupted.
I tried dpkg --configure -a as mentioned in the help text, but that runs into a... |
I was having the same problem some years ago due to a GUI widget that was looking for system updates and which was locking the package manager.
You can maybe verify running GUI applications (including widget, systray) to be sure that no one related to package management is opened.
| Can't install anything |
1,560,767,500,000 |
I'm trying to install docker with apt from the https://download.docker.com/linux/debian/ repo.
Unfortunately installation always fails with a hash mismatch warning. I have already tried everything suggested in this post https://askubuntu.com/questions/41605/trouble-downloading-packages-list-due-to-a-hash-sum-mismatch-... |
Thanks @muru for referring to this post, it was indeed a problem with Windows' hyper-v and VirtualBox. Disabling the hyper-v acceleration solved the problem.
| VirutalBox: apt download / hashing problem (APT Hash Sum Mismatch) |
1,560,767,500,000 |
I'm writing a bash script,
and I have a list of dpkg package names and I want my script to write a text file with the following format:
name of package
description
name of package
description
...
Here is the simple sentence that should do it but it does not...
cat /media/sdcard/liste_des_paquets_sans_dependances... |
OK i found the problem.
It was the "end of line" character in the list.
i did a "return" press on each beginning of line and an "enter" press to change this "end of line" character and it worked...
just a few things that take several hours of your time... i'll work on a different script to make my list...
thank you bo... | List description of a package list [closed] |
1,560,767,500,000 |
I was trying to crossgrade my architecture from i386 to amd64 (from https://wiki.debian.org/CrossGrading) and I got some error and broke apt-get and dpkg.
apt-get and dpkg output
cannot execute binary file: Exec format error
sudo apt-get outputs
/usr/bin/apt-get: 3: /usr/bin/apt-get: Syntax error: ")" unexpected
... |
I tried to crossgrade too, ended up with the same results as you. Reinstalling the system is the easiest and fastest way of troubleshooting your problem.
| I broke apt-get and dpkg when trying to crossgrade my Debian architecture |
1,560,767,500,000 |
I need to rollback some packages. I have a list of all the packages I need to rollback and the versions I need. All the versions I need are sitting in /var/cache/apt/archives yet apt ignored them telling me that it couldn't find the version I asked for. How can I get apt to see the older versions? I did try using dpkg... |
I must correct me. In /var/cache/apt/archives
dpkg-scanpackages -m ./ /dev/null | gzip > Packages.gz
The parameter -m means -m, --multiversion Include all found packages
in the output.
| apt-get rollback version not found |
1,560,767,500,000 |
A command like dpkg -i *.deb will install all deb files in a folder without warning of incompatibilities and such.
Can this command be changed so that installation of broken packages is avoided, warning displayed, etc?
|
incompatibilities and such
What do you mean by that?
Before installing, dpkg first checks if all dependencies of the .deb package(s) to be installed are satisfied. If the dpkg database is inconsistent, a message is printed.
| Is there a dpkg argument to warn about incomptibilities/broken dependencies? |
1,560,767,500,000 |
I am trying to install Oracle SQL Developer onto a Debian Linux server.
I started off by downloading a package from the Oracle website;
sqldeveloper-4.0.3.16.84-1.noarch.rpm
I then called the following command to make this into a .deb package.
alien sqldeveloper-4.0.3.16.84-1.noarch.rpm
This command ran successful... |
You have used alien to transform the package format from .rpm to .deb.
In the most cases that tool works flawless. But rarely it fails building an installable package. Especially if there are some install or config-scripts included in the .rpm package (which are like the pre and post install/remove scripts in a .deb p... | Error When trying to install a package using dpkg |
1,560,767,500,000 |
fontconfig issues
# dpkg --configure -a
Setting up font config (2.13.1-4.5) ...
Regenerating fonts cache... failed.
See /var/log/fontconfig.log for more information.
dpkg: error processing package fontconfig (--configure):
installed font config package post-installation script subprocess returned error exit status 1
... |
I had the exact same problem.
Check for manually compiled old versions of libfreetype which is usually provided by the libfreetype6 package.
I had and older version compiled in /usr/local/lib which not only broke the fontconfig but as e result of the broken fontconfig, the update-initramfs has been broken too.
| dpkg: error processing package fontconfig (--configure) |
1,560,767,500,000 |
when I do dpkg --get-selections or less /proc/modules I see two different list. I don't understand the difference between the elements of each...
|
The two commands are not related in any way.
dpkg --get-selections returns the selection state of available packages. From man dpkg:
--get-selections [package-name-pattern...]
Get list of package selections, and write it to stdout. Without a pattern,
non-installed packages (i.e. those which have been previ... | What is the difference between a linux package and a linux module? |
1,560,767,500,000 |
I'm very new to Linux overall and I'm trying to find a way to build a Debian package on an Alpine docker image. It is by far the fastest I can get my pipeline to run, but unfortunately when I try to run dpkg-deb --build I get the following error:
03:22:44 dpkg-deb: building package 'x-sync' in 'x-sync_1.0.2.deb'.
03:2... |
The best environment in which to build Debian packages is always a Debian-based environment. While Alpine-based containers are nice because of their small size and fast setup times, they introduce a number of issues, two of which are particularly troublesome:
they use Busybox, where Debian packages rely on the GNU va... | Building .deb on Alpine |
1,560,767,500,000 |
I have compiled a C++ software on my Ubuntu 22.04 laptop, and used checkinstall to install it. This build the corresponding .deb file and that's nice.
But now I want to install that .deb file into a docker container based on "Debian GNU/Linux 11 (bullseye)" and dpkg shows this error:
# dpkg --install mypackage-8.0.0_2... |
dpkg in Debian doesn’t support zstd compression. To be able to even extract your package in Debian, you need to convert it:
extract its components:
ar -x mypackage-8.0.0_20221030-1_amd64.deb
decompress them:
zstd -d control.tar.zst
zstd -d data.tar.zst
recompress them:
xz control.tar
xz data.tar
re-create your ... | Installing a deb file build with checkinstall on Ubuntu into a docker container based on Debian |
1,560,767,500,000 |
I'm trying to rebuild a Debian system from a recent backup.
All the recipes for doing this that I've found begin with a step of the form
dpkg --get-selections > package_list
This, of course, must be done on the original system, while all I have is an rsync backup on an external drive. This backup, however, includes ... |
All you need to retrieve the selections is the status file (from /var/lib/dpkg/status or one of its backups, /var/lib/dpkg.status*), and an updates directory alongside it. Then you can run
dpkg --admindir=/mnt/backup/var/lib/dpkg/ --get-selections
to retrieve the package selections.
Once you've restored the installed... | How to approximate `dpkg --get-selections` from a backup of /etc and /var? |
1,560,767,500,000 |
I had openssh-server working on my dedicated server running proxmox, but everytime I tried to upgrade anything I got this error:
dpkg:error processing package openssh-server (--configure):
subprocess installed post-installation script returned error exit status 10
So I read on forums that I should uninstall and purge... |
At last I couldn't config openssh-server but I edit my /etc/apt/sources.list and added these lines:
(As my server is in Hetzner Co.)
deb http://mirror.hetzner.de/debian/packages jessie main contrib non-free
deb http://mirror.hetzner.de/debian/security jessie/updates main contrib non-free
deb http://mirror.hetzner.de/d... | subprocess installed post-installation script returned error exit status 10 |
1,560,767,500,000 |
In a case where I write a query for dpkg-query to list me some package, I would like it to return me the package name if it finds something. If it doesn't find anything, I don't want it to output: no package found matching {package-name} I would like it to output nothing at all.
The reason for this is because my query... |
You can redirect dpkg-query's stderr to /dev/null to silence the error message, as in dpkg-query --list <package> 2>/dev/null.
| How to ignore warnings from dpkg-query when it doesn't find anything? |
1,560,767,500,000 |
I use cat -n to get a line listing of the content in a .txt file.
[$] cat exam.txt
1 let's see how far does this go, and if it works or not. if not till where it
2 goes and what happens aft... |
dpkg -L nano | cat -n
does the trick... (It counts directories as well as files though.)
If you just want the total,
dpkg -L nano | wc -l
| Is there a way to list number of files when using dpkg -L to list files of a package? |
1,560,767,500,000 |
I like to check whether several packages are installed or not on Debian/Ubuntu
Here is my attempt at a script to do this:
query=`dpkg-query -W -f '${Status}'`
ok="install ok"
if ! [ `$query` curl == "$ok" ] ;then
apt-get -y -qq install curl >> /dev/null 2>&1
fi
The result is
Install: target Installed is not a dir... |
You seem to be doing things in a needlessly complicated way. Why not just
dpkg -l curl || apt-get -y -qq install curl > /dev/null 2>&1
You did ask for a one-liner after all. Since, presumably, all you want is to know whether curl is available, you could also just do
type curl >/dev/null 2>&1 || apt-get -y -qq install... | Loop to check whether a Debian package is installed or not |
1,560,767,500,000 |
I need to use older version of linphone on Debian 12.
The version in bookworm is 4.4.10-3, and I actually need 3.12.0, which is available in Buster.
On my bookworm build machine, I changed the sources, and downloaded linphone-3.12.0 sources from buster. Then I switched sources back to bookworm, and installed any neces... |
The build fails because of
Traceback (most recent call last):
File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 764, in <module>
main()
File "/mnt/src/deb/LINPHONE/linphone-3.12.0/wrappers/cpp/genwrapper.py", line 760, in main
genwrapper.render_all()
File "/mnt/src/deb/LINPHON... | building Debian package from Buster fails on Bookworm |
1,658,759,967,000 |
I would like my CI/CD to automatically build .deb of my package for each commit, with for instance the version containing the commit hash (e.g. my-package-662b98b), so we can install a specific version by just specifying the version when installing.
However, I don't know how to separate them from regular versions. For... |
There are two aspects to this.
The first is version numbering. Since you want your versions to remain in sequence, you need to include the version as well as the hash. To ensure that versions are sorted properly, this is usually done by appending the build date before the hash, with a snapshot number between the two i... | How to make a debian package only installable by specifying the version |
1,658,759,967,000 |
I just created a simple .deb package (using this tutorial). This is my control file:
Package: bla
Version: 1.0
Architecture: x86_64
Maintainer: bla
Description: bla
The Architecture I got from uname -m: x86_64, however, dpkg-deb broke due to _ being an invalid char, so I changed to - which worked but broke on the ins... |
For historical reasons, the 64-bit x86 architecture in Debian is amd64. The kernel identifies itself as x86-64 but Debian packages specify amd64.
Other architectures have different names depending on context too, e.g. arm64 instead of aarch64. The architecture specifics memo on the Debian wiki gives all the details.
S... | dpkg-deb treats my architecture as amd64 instead of x86-64 |
1,658,759,967,000 |
It is required to install a bunch of packages when building a project.
Such projects may have dedicated Docker images for this or pre-existing meta-packages.
But for the ones that have none of the above, you have to manually install the required packages. For example, if you want to install the dependencies to build t... |
Specifically for build dependencies, there’s already a tool for that, or near enough; mk-build-deps (in devscripts) will create a meta-package encapsulating another package’s build-dependencies, so you can then install the meta-package and have any dependencies be automatically installed (and then become autoremoval c... | Automatically install multiple packages under one custom meta-package |
1,658,759,967,000 |
Say I'm running a Debian based distro and I want to know what packages I ran apt-get install <package-name> to install, but I didn't want to include any packages that were auto-installed as dependencies when I installed another package using apt-get install <package-name>...would there be a way to find this out?
My gu... |
Packages installed as dependencies are marked as automatically installed. You can see and manipulate these markers with apt-mark.
apt-mark showmanual
will list packages which aren’t marked as automatically installed, i.e. packages installed explicitly.
| How to get a list of which packages were installed with apt-get by a user and not by dependencies? |
1,658,759,967,000 |
I cannot seem to install any package at the app at the moment, it seems like the packages required for those apps to install are bad, I have searched and tried some solutions but those same packages still throw errors when i try them.
These are the lines when i run sudo dpkg --configure -a:
sudo dpkg --configure -a
... |
This is the source of your problems:
dpkg: error processing package libplank-common (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
To reinstall the package, run
sudo apt-get install --reinstall libplank-common
That might fail, in which case you c... | I get these errors from dpkg-reconfigure, few packages throw errors while processing |
1,658,759,967,000 |
I'm building a .deb package using:
dpkg-deb --build package
The directory "package" contains another directory called DEBIAN that has the changelog, but the resulting package doesn't have the changelog.Debian.gz in it, and if I check the package using lintian I get following errors:
E: msodbcsql: debian-changelog-fil... |
In a binary package, the changelog isn’t a control file, it’s just part of the package’s payload. With dpkg-deb -b, that means you need to place the changelog in usr/share/doc/${package}/changelog.Debian.gz directly (or .../changelog.gz for a native package).
More explicitly, since you’re building your package in the ... | dpkg-deb build ignores/misinterprets a changelog |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.