date
int64
1,220B
1,719B
question_description
stringlengths
28
29.9k
accepted_answer
stringlengths
12
26.4k
question_title
stringlengths
14
159
1,658,759,967,000
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 repository, along with its recursi...
You can set the debconf priority by setting the DEBIAN_PRIORITY environment variable: DEBIAN_PRIORITY=low apt install foo
How to set up deb question priority with an apt flag?
1,658,759,967,000
After upgrading to Debian 10.7 I got this error, possibly due to lack of storage space: Error while installing package: installed initramfs-tools package post installation script: subprocess returned error exit status 1 How to ensure that the package is correctly installed? Should it be reinstalled (how)? No packages ...
When a package post installation script fails, the package remains in “half-configured” state, and any subsequent operation which touches packages should run the post installation script again. You can check initramfs-tools’ state by running dpkg -l initramfs-tools If this shows Desired=Unknown/Install/Remove/Purge/H...
How to ensure that a package is correctly installed/updated after "post-installation script: subprocess returned error exit status 1"
1,658,759,967,000
I have these erros when I'm doing apt upgrade on my debian server: Preparing to unpack .../phpmyadmin_4%3a4.6.6-4+deb9u1_all.deb ... Determining localhost credentials from /etc/mysql/debian.cnf: succeeded. dpkg: warning: subprocess old pre-removal script returned error exit status 10 dpkg: trying script from the new p...
Open the terminal and type: sudo mv /var/lib/dpkg/info/phpmyadmin.* /tmp/ sudo dpkg --remove --force-remove-reinstreq phpmyadmin sudo apt remove phpmyadmin sudo apt autoremove sudo apt autoclean
dpkg: error processing package phpmyadmin
1,658,759,967,000
Before installing, a package’s dependencies and conflicts are stored in the control file (of the .deb). Once the package is installed, where are the list its dependencies and conflicts? I need to remove and then install (not reinstall) substitute, so I figured that the easiest way to do so without having to remove and...
dpkg stores its package information, including dependencies, in /var/lib/dpkg/status. Given what you’ve already tried, I doubt removing and installing a package in the way you describe will work any better...
Where are installed packages’ dependencies stored?
1,658,759,967,000
Context: Want to put a lock on etckeeper/apt hook activity during special backup. Objective is to preserve whole package integrity, e.g., wait until any package installation is complete, and then prevent new installation from starting until special backup is complete. Found shell script under cron which appears to be ...
The cron job is treating /var/cache/etckeeper/packagelist.pre-install as evidence that an installation is being processed, so it shouldn’t archive anything just yet. That file isn’t supposed to be a lock file, but the cron job is using it as a substitute. However I wouldn’t particularly worry about etckeeper and any ...
Where is official documentation about locking mechanisms for etckeeper, apt, and/or dpkg?
1,658,759,967,000
I am looking for which no-longer-installed package depended on rsync. An apt-get autoremove now wants to remove rsync so I'm guessing that it was installed as part of a dependency rather than manually, and I'm curious which package depended on it. Can I search back in logs for something like "X requires Y, so I will i...
apt doesn’t remember which reverse dependency caused it to install rsync, but it does log all its actions in /var/log/apt, so you might find the dependency there: zgrep rsync /var/log/apt/history.log* Look for a line saying that rsync was installed automatically; one of the non-automatic packages there should be the ...
How to find which package required another package?
1,658,759,967,000
python3.6 was installed this way. wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tar.xz tar -xf Python-3.6.0.tar.xz cd ./Python-3.6.0 sudo ./configure --prefix=/usr/local/python3.6 --with-ensurepip=install --enable-ipv6 sudo make sudo make install sudo ln -s /usr/local/python3.6/bin/python3.6 /usr/bin/pytho...
dpkg only manages packages, it doesn't know about software installed in other ways. There are different approaches you can use. You can use checkinstall to create a package from the results of make install. Alternatively, you can rebuild the Debian python3.6. It's important to realise though that the system Python pac...
How to make dpkg manage python3.6?
1,658,759,967,000
Why are some packages found by dpkg-query as with unknown desired action and with not-installed status while other packages are not found at all? For example I have never installed package named debian-handbook, but it somehow shows up in output of dpkg-query -l debian-handbook or dpkg-query -s debian-handbook. On the...
I think dpkg -l finds packages that are mentioned as dependencies of packages that are currently installed, and doesn't find other available packages. (Here “installed” includes “conffiles-only” packages, i.e. packages that have been removed but not purged, listed as uc in dpkg -l.) dpkg -l lists packages that are men...
How are some deb packages found by dpkg-query while they have never been installed?
1,658,759,967,000
I am using Ubuntu 14.04.5 LTS. Kernel is 3.13.0.-92-generic. I have installed latest available updates. I am trying make Linux version of Password Safe to work on my computer. I downloaded .deb file for Debian and installed it with dpkg -i passwordsafe-debian-0.99.9.-BETA.amd64.deb. Installation succeeds but when I t...
The errors mean the version of Password Safe you have (as built for the package you're installing) needs a newer libstdc++.so than the one on your system. Upgrading that library beyond what is supported by your current distribution is not a good idea. There are a few other possibilities. If you don't mind installing ...
Libstdc++: wrong version after manually installing .deb-package
1,658,759,967,000
I bought a new Raspberry Pi 2 with ARM processor architecture. Tonight I did an update via sudo apt-get update && sudo apt-get upgrade. I noticed, that it did update the dpkg package itself. Now I wanted to install apache2 on the Raspbian system, but the dpkg binaries seem to be broken: ... /usr/bin/dpkg-deb: 1: /usr/...
To restore the binaries without using dpkg, here's the "simple" approach, assuming your Raspberry Pi has binutils installed: retrieve the dpkg package (the .deb file); it's probably still in /var/cache/apt/archives, otherwise you'll need to download it (from the pool; pick whichever version matches what you have inst...
dpkg binaries broken?
1,658,759,967,000
I am trying to install an app we made in Ubuntu (with Quickly) to Raspberry Pi Raspbian. However, it has a dependency python:any (>= 2.7.1-0ubuntu2) which is unmet in Raspbian although it has Python 2.8 installed. However, the app runs fine throughout Ubuntu 12.04 to 15.04. Is this due to the mention of Ubuntu in ve...
The three dependencies for Python are: python (>= 2.7) python (<< 2.8) python:any (>= 2.7.1-0ubuntu2) The net effect is to require Python from the 2.7 series (e.g. not 2.6, not 3.x) but no older than 2.7.1-0ubuntu2. The first two taken together are a way of saying that you need to have Python 2.7 installed but it is...
Strange dependency error in installing package
1,658,759,967,000
I'm trying to install things in Linux (Crunchbang Linux - a derivation of Debian), and I'm getting errors which point towards mongodb-20gen. When I try to remove it using :- cometbill@Linuxn00b:~$ sudo apt-get remove mongodb-10gen I get ... Reading package lists... Done Building dependency tree Reading state inf...
This AskUbuntu post solved the problem for me; I edited /var/lib/dpkg/status and removed the section that was causing problems.
MongoDB install errors / E: Sub-process /usr/bin/dpkg returned an error code (1)
1,658,759,967,000
I'm using dpkg (Cydia), and a package keeps saying that it's downloading 26.2 MB, and resuming at 166.0 kB. It is consistently failing to install properly. Is there a way to clear this "saved data" and start the download fresh again?
On Debian-based systems, apt-get downloads *.deb files under /var/cache/apt/archives/ (dpkg does not download anything by itself, it only manages the packages locally). Searching suggests, it's just a bit different on iOS, and the path is /private/var/cache/apt/archives, partucularly, you probably want to remove /priv...
Clearing dpkg downloaded data?
1,658,759,967,000
How can I use dkpg -i and it does not update the package if already installed.
Given an arbitrary package file as argument, this script will install it only if the corresponding package is not already installed (in any version): #!/bin/sh if ! dpkg -l "$(dpkg-deb -W --showformat '${Package}:${Architecture}' "$1")" | grep -q '^ii'; then dpkg -i "$1" fi It works by extracting the package nam...
Use dpkg -i without updating the already installed package
1,658,759,967,000
I could not find no verbosity, quiet, silent, etc flags for dpkg-buildpackage. For instance, it prints [info] messages I am interested in, but also prints what is going on within all its rules file targets. I would like to not output that. Is building a debian package profile related ?
dpkg-buildpackage doesn’t control the package build’s output, but Policy-compliant packages can provide a “terse” mode, controlled by DEB_BUILD_OPTIONS: DEB_BUILD_OPTIONS=terse dpkg-buildpackage ... This isn’t guaranteed to make much difference; the results will depend on the build itself (debian/rules in the source ...
Does dpkg-buildpackage offer control over its output?
1,658,759,967,000
I am trying to rebuild Debian package mousepad without D-Bus on Debian 10. First, I try building the package without any change. apt-get source mousepad cd mousepad-0.4.1 dpkg-buildpackage --build=binary --no-sign That works. Now I want to build with D-Bus disabled. I see that Mousepad has the --disable-dbus build op...
The Debian 10 mousepad package is already built without D-Bus support; you can verify this by looking at the build logs for version 0.4.1-2 on amd64 and searching for “D-BUS”: Build Configuration: * D-BUS support: no * Debug Support: minimum * Use keyfile backend: default * Build with GT...
Remove all traces of D-Bus when running Mousepad in Debian
1,658,759,967,000
After downloading ubuntu source from kernel.ubuntu.com, I tried to set configuration for arm64. When I do command below, LANG=C fakeroot debian/rules ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- editconfigs and select to change config for arm64, the config menu appears and below is the screen when I searched for STACK...
Options that contain HAVE_ are generally things that depend on your build environment, not options per se. You can see this one being defined in arch/arm64/Kconfig: config CC_HAVE_STACKPROTECTOR_SYSREG def_bool $(cc-option,-mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guar...
where can I find CC_HAVE_STACKPROTECTOR_SYSREG
1,658,759,967,000
It's possible to add user-defined fields in the debian/control file using the XBS- method, as defined in the Debian Policy Manual, and those will be injected into the binary .deb and source packages. Something like this before calling dpkg-buildpackage will work to inject a new field into both the Source and Binary pa...
It is possible to modify the binary packages control files from the --hook-buildinfo hook that's called immediately after debian/rules build is called, using dpkg-deb to unpack/repack them. #!/bin/bash # # deb_insert_meta.sh # # Inserts CI metadata into all deb files in parent directory # Intended for use with: # `dpk...
How to injecting user-defined fields in Debian binary package control files
1,658,759,967,000
I made a script that compiles a program (box86), packages it into a debian package every week, and uploads it to my apt repo (hosted on github). for the version of each package I use the git tag (0.2.1 for example) and the git commit hash (638b341 for example) and put them like this: tag+sha1 (0.2.1+638b341 for exampl...
All else being equal, apt prefers later versions. Because hashes don’t increase with time, using them in versions can cause the problem you’re seeing. There are two common workarounds: adding a monotonically-increasing number before the hash, or adding the date, again before the hash. Taking the latter approach, for a...
deb version is "git tag+git commit hash" = apt downloading the wrong version from my apt repo
1,658,759,967,000
While removing a package yesterday, I received warning like this : dpkg warning : directory is not empty so not removed When I checked the listed directory in the warning, I found that the directory is actually empty. That means dpkg successfully removed files inside that directory, but thrown out the warning, and not...
Thank you @Fox for pointing out this. I almost forgot dotfiles. If the directory that is being removed has any files included that dpkg doesn't know about, it gives this warning. Sometimes, that directory may have system generated dotfiles. In those cases, we may receive this warning.
dpkg warning : directory is not empty so not removed
1,658,759,967,000
I've been already made a bootable Linux-based OS using the kernel, busybox only, and testing it in the QEMU emulator is successful. The next step I need is to install dpkg and APT (Debian package manager) on my custom Linux. How can I do that? Just install the Debian Package manager source code and compile and then p...
Before I continue let me disclaim: If your professor is using apt, then she is using a debian-based system. I recommend using the same distro instead of your own "from-scratch" system. If you and using a from-scratch system because you want a custom kernel, then you can install that kernel a debian-based system. I...
How do install the Debian package manager (dpk and apt) in my custom Linux distribution? [closed]
1,658,759,967,000
I am trying to install radare2 package. I have downloaded the .deb file from https://packages.debian.org/jessie/amd64/multiarch-support/download, and install it via apt: $sudo apt install -f ./libradare2-0.9.6_0.9.6-3.1+deb8u1_amd64.deb, but then: libradare2-0.9.6 : Depends: libradare2-common (>= 0.9.6-3.1+deb8u1) bu...
When you look specifically at radare2 packages, you are attemtping to install a single package and NOT its dependencies with the method you're using. This will cause issues because you're trying two things: You are trying to install a package manually that is NOT in your configured repositories for Buster, and You a...
apt - how to resolve not installable dependencies?
1,658,759,967,000
I want to have packages installed manually via dpkg -i not being updated. I figured the most elegant way to do this would to pin them to a high priority. The manpage of apt_preferences says Assign [...] priority 990 to the instances that are not installed and belong to the target release. so I guess it should be hig...
The tool you are looking for to complete your task is apt-mark. Use the following command to mark a manually installed [Package] to prevent apt from updating it. apt-mark hold [Package] The command marks the package as held. A held package cannot be installed, upgraded, removed, or purged. You can "unhold" a package ...
How to prioritize packages installed from files in APT?
1,658,759,967,000
I am creating my own Debian package to install Apache Derby and as part of the install I wish to run a configuration script to set-up some default users. Therefore during the installation I start up the Apache Derby network server and then I test for it's presence by using the 'ping' command of NetworkServerControl cl...
I presume this is in, or called from, your post-inst script. The debian packaging convention is to run shell post-inst etc scripts with set -e, which exits with an error on any uncaptured non-zero exit code. You can "capture" the exit status with, e.g., || or &&, or if/elif, while, or until. See man bash for detai...
How to prevent a failed subprocess during Debian package install terminating the installation immediately
1,658,759,967,000
I have a problem installing Pandas under Python 3.7.3 on a MOXA linux computer running Debian 9. It has a Armv7 Cortex-A8 600-1000 MHz processor. I tried: sudo apt update sudo apt ugrpade sudo apt install python3-pandas sudo apt-get install python3-pandas The last two commands have the following error: python3-pa...
According to this page, python3-pandas-lib is built for arm and arm64 and available in the official stretch repositories. According to your recent update, your system identifies as armv7l which would need the armhf repository branch from Debian. It does not appear that python-pandas is available for armhf in Debian...
Installing pandas under python 3.7.3 in debian 9
1,658,759,967,000
I am trying to install Emacs25 package on Ubuntu 16.04 alongside Emacs 24 and Emacs-snapshot (currently Emacs 27.0.50). I ran the following commands sudo add-apt-repository ppa:kelleyk/emacs sudo apt-get update After that I ran sudo apt install emacs25 during which I get this user@user-desktop:$ sudo apt install ...
You can troubleshoot this using the following error message in the output you’ve quoted: Unpacking emacs25-common (92792-c3ff671-emacs-25.2~ubuntu16.04.1) ... dpkg: error processing archive /var/cache/apt/archives/emacs25-common_92792-c3ff671-emacs-25.2~ubuntu16.04.1_all.deb (--unpack): trying to overwrite '/usr/shar...
Error Installing Emacs25 Package on Ubuntu 16.04
1,658,759,967,000
I have created a binary deb package with dpkg-deb command. It is installable and works. > dpkg-deb --build /test dpkg-deb: building package `xxx' in `test.deb'. Now I want to sign the package, but debsigs failed with errors: > debsigs --sign=maint -k XXX /test.deb no entry data.tar.gz in archive Was it a problem wi...
Your version of dpkg-deb produced a .deb package containing an xz-compressed data.tar, but your version of debsigs doesn’t support that, it only supports gzip-compressed data.tar components. To solve this, there are two possible approaches: upgrade debsigs to 0.1.18 or later (which is widely available, albeit not in ...
debsign: no entry data.tar.gz in archive error
1,547,805,805,000
I'm trying to create a *.deb file from debian using cmake with a mingw cross-compiler. CMake's compiler test fails when using dpkg-buildpackage. Building normally is fine: mkdir build && cd build cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=None -D...
You need to disable the relro hardening configuration; change your debian/rules to #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=-relro %: dh $@ --buildsystem=cmake --parallel See the dpkg-buildflags manpage for details. (As an aside, if you’re using compat level 10 or greater, you don’t nee...
Remove debuild buildsystem=cmake linker flags
1,547,805,805,000
I try to compile softwares with a 32 bits libc, old enough to be compatible with my customers. So I have installed Debian Squeeze (6) 64 bits this last days (so after deprecation date) in a ProXmox container. I have set the archive repositories to allow me to update / install packages, it works. My sources.list is: de...
For a 32-bit (i386) build on a 64-bit (amd64) on Debian 6, you shouldn’t need multi-arch; if you install gcc-multilib or g++-multilib (depending on your goal) and compile with gcc -m32 (or g++ -m32) you should get the result you’re after.
Enable 32 bits compilation on Debian squeeze (6) 64 with backports (after deprecation)
1,547,805,805,000
I used the next script from askububtu to automate the download of all installed packages in a fresh debian 9.3 LXDE installation. From here: #!/bin/bash dpkg --get-selections | while read line do package=`echo $line | awk '{print $1}'` mkdir $package cd $package apt-get -q source $packa...
There’s a fundamental problem with the script you’re using: it’s based on binary packages, not source packages. That’s why you’re downloading the LibreOffice source multiple times: there are many binary packages built from the same source package... Another problem is that you don’t have dpkg-source installed, so the ...
Debian script to download source of installed packages fails
1,547,805,805,000
I installed some self-built deb packages (PAM) with sudo dpkg --force-all -i /opt/bzr/build-area/*.deb tree is: /opt/bzr/build-area . ├── libpam0g_1.1.8-3ubuntu1_amd64.deb ├── libpam0g-dev_1.1.8-3ubuntu1_amd64.deb ├── libpam-cracklib_1.1.8-3ubuntu1_amd64.deb ├── libpam-doc_1.1.8-3ubuntu1_all.deb ├── libpam-modules_1...
Yes, they will, if they use a higher version number than your packages, unless you adjust your pin priorities appropriately (or hold the packages, as pointed out by cas). Note that the repositories’ packages are liable to overwrite yours if you use the same version number, so you should really increment your version ...
What happens to self-built packages when I `apt dist-upgrade`?
1,547,805,805,000
I just tried to upgrade Debian using the instructions in this website. The second time I ran upgrade (after rebooting, the first upgrade and dist-upgrade went well) the process stopped while installing gnome-themes-standard-data_3.22.2-2_all.deb with the error unable to open '/usr/share/themes/Adwaita-dark/gtk-3.0/gtk...
/usr/share/themes/Adwaita-dark/gtk-3.0/ was a symbolic link to /usr/share/themes/Adwaita/gtk-3.0/. After removing the symbolic link with sudo rm /usr/share/themes/Adwaita-dark/gtk-3.0/ the package updater created this folder (not as a link anymore) and the installation process worked out well. Creating the folders/fil...
Dependency problems upgrading to stretch: unable to open *.dpkg-new
1,547,805,805,000
I would like to know if packages will still get updated in Ubuntu if I remove the meta package that owned it. for example, I would like to remove the hexchat from Ubuntu mate, but it also gets the ubuntu-mate-meta package removed, do other packaged under ubuntu-mate-meta still get updates?
Any package installed with a distribution's package manager will continue to receive updates (assuming updates are made available), regardless of how it was installed. So in your case, all the packages pulled in by ubuntu-mate-meta will continue to receive updates, even if you remove ubuntu-mate-meta. Note that you'll...
Do applications update without meta packages?
1,547,805,805,000
As our web hosting technician recovered our Linux/Debian squeeze system, I've lost man exetubable. The symptom is: # ls -l /usr/bin/man lrwxrwxrwx 1 root root 17 Oct 11 2011 /usr/bin/man -> ../lib/man-db/man so /usr/bin/man points to /usr/lib/man-db/man # ls -l /usr/lib/man-db/man lrwxrwxrwx 1 root root 13 Aug 12 ...
From the man-db package. Just remove the symlinks, and run: apt-get purge man-db apt-get install man-db
Where can I extract or copy man executable
1,547,805,805,000
I'm trying to make an interactive docker container based on a 3rd party docker image where /usr/share/man has been deleted to save layer space. Every file that belongs in that folder is part of an apt package that otherwise works fine. I would like to restore just those deleted manpages for the packages I currently ha...
You will need to reinstall the affected packages because the local image won't have any content to let to repair. However you can potentially minimise the amount of repair needed. You can determine which packages have files in /usr/share/man with a loop such as for pkg in $(dpkg --get-selections | awk '$2=="install" {...
How to recover a deleted folder full of files managed by dpkg?
1,547,805,805,000
I have a problem with a Debian server that I use for multiple purposes. Yesterday I tried to upgrade my packages with a simple apt-get update / upgrade as usual and found everything to be broken : Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The f...
/var/lib/dpkg/info/python-apt.postinst: /usr/bin/pycompile: /usr/bin/python: bad interpreter: No such file or directory That error indicates that /usr/bin/python is broken in some ways. Most Python scripts won't be able to run. When the python-apt package is installed, it runs a Python script. This fails, so the in...
Debian Jessie - dpkg / apt intall, update and uninstall broken
1,547,805,805,000
Jessie comes with APR (apache runtime portable) as package libapr1 version 1.5.1-3. However, that is the only version that Jessie has (it is also the newest version). I am trying to build the UIMA C++ SDK, which requires an apr version between 1.3.[0-9] or 1.4.[0-9]. I know that Debian Wheezy has apr 1.4.6 (I download...
When you install two different versions with dpkg or apt-get, it will not break the system, unless you use the -f option to force installation. Instead it will create an additional entry in your package database. When you install the source manually, make sure to link the programs to the library. For instance link apr...
I need to install two different versions of a library on a Debian-based distro
1,547,805,805,000
Today I installed Archlinux and I tried to install the following package 'dpkg' from the AUR. I tried 2 methods: pacman -S dpkg and after that failed I downloaded the *.tar.gz and tried: pacman -U dpkg.tar.gz At the first option I got the following error: [root@localhost andreas]# pacman -S dpkg Fehler: Ziel nicht g...
The file dpkg.tar.gz is the instructions to actually build the package. Do this, in the directory in which dpkg.tar.gz resides: tar xf dpkg.tar.gz cd dpkg makepkg I had to resolve some dependencies with pacman -S some-stuff to get makepkg to finish. I was left with a file dpkg-1.16.15-1-x86_64.pkg.tar.xz. That's t...
How to install the package 'dpkg' from the AUR
1,547,805,805,000
I'm just playing around with Ubuntu 14.04.1 LTS. I installed emacs, and wanted to double check if it was. ~ 1496 $ dpkg --status emacs dpkg-query: package 'emacs' is not installed and no information is available Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) t...
I suspect you have installed the emacs24 package instead of the emacs metapackage. Check with: dpkg --status emacs24 The output of this command might also shed some light: dpkg -l | grep '^ii.*emacs'
dpkg --status package_name
1,547,805,805,000
I am running the Weakerth4n Linux operating system on my old Dell d600 laptop I got at Defcon for $80 USD. I have a question about making certain programs (like Virtual Box); this may be as simple as telling me that my specific distro isn't supported, but it's worth a shot. It could be that my Kbuild configuration is ...
Sounds like you have not installed the kernel headers which are needed for compiling imodules. I've never used Weakerth4n but it seems to be a Debian derivative so try sudo apt-get install linux-headers-$(uname -r) Then try sudo /etc/init.d/vboxdrv setup again. Also, you really don't need this, virtualbox is in the D...
Linux Debian Squeezy Distro: Weakerth4n, Kconfig && make issues
1,547,805,805,000
I'm having to deal with a Debian server, which initially was Squeeze, I believe, but where administrator enabled several distributions: deb http://mirror.yandex.ru/debian/ stable main contrib non-free deb http://mirror.yandex.ru/debian/ testing main contrib non-free deb http://security.debian.org/ testing/updates main...
apt-cache policy packagename_here can tell you which version of a package is available in which repository.
Understanding aptitude's behavior on a machine with multiple archives enabled
1,547,805,805,000
When I run apt-get -f install, I get the following abnormal output: Setting up cups (1.5.0-8) ... start: Job failed to start invoke-rc.d: initscript cups, action "start" failed. dpkg: error processing cups (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountere...
Something is wrong with the configuration of CUPS (network printing infrastructure for Linux). If CUPS is not the problem you're trying to fix, you can work around it for now by removing CUPS (apt-get remove cups), and then re-trying the apt-get -f install. If you're interested in diagnosing the CUPS problem, you can...
"invoke-rc.d: initscript cups, action "start" failed." while configure cups
1,547,805,805,000
OS: LMDE 5 (based on Debian 11 Bullseye) To keep the system tidy, I use separate files to overrides the original distribution/developer configuration files wherever possible. This also prevents problems when the developer makes changes to the original config and keeps my settings safe. etc... For Unattended-Upgrades, ...
The configuration file /etc/apt/apt.conf.d/50unattended-upgrades isn't directly part of the package unattended-upgrades. Upgrades of this file are managed by its install scripts through helper tools (mostly dpkg-maintscript-helper and ucf --three-way --debconf-ok as seen for example in the postinst file): among other ...
Unattended-Upgrades configuration for custom repo only
1,547,805,805,000
I understand I can use DPkg::Pre-Invoke to run a script/command before apt does it's thing. DPkg::Pre-Invoke { "/tmp/pre-invoke.sh"; }; In my script, I want to get the full apt command that was executed. For example, if I run apt install funky then, inside my script, I want to be able to see the calling command was a...
I found a way to get the information I am after but I don't like it -- it is too hacky. I feel like there is a better way. I am only sharing this in case nobody else can tell me a better way. Essentially I walk up the current processes process tree until I find the one whose command is apt. # we need to work up the pr...
How can I get the current apt command called in a DPkg::Pre-Invoke script?
1,547,805,805,000
When I explored the /var folder, I found the /var/lib/dpkg/info folder, which interested me. I made a package with the name kgdeb, and I looked for a file that had the kgdeb name. I found it, and this file name was kgdeb.list. I looked at this file using Vim, and saw that it contained the output of the dpkg -L kgdeb c...
Yes, dpkg -L package uses the list of files stored in /var/lib/dpkg/info/package.list (replace package as appropriate). You can add content to a .list file to verify: cd /var/lib/dpkg/info sudo cp zutils.list{,.bak} echo /some/random/file | sudo tee -a zutils.list dpkg -L zutils sudo mv zutils.list{.bak,} (replacing...
Is the "dpkg -L" command uisng "/var/lib/dpkg/info"?
1,547,805,805,000
Hi guys i recently installed Virtualbox on my Windowsfx 10 laptop. Before when i had Windows 10 on my laptop Virtualbox runned perfect. But since i did a fresh install of Windowsfx 10. And try to run a VM on Virtualbox this is the result i get...... Failed to open a session for the virtual machine Boentoe. The virtu...
Linux mint Ulyana is based on Ubuntu Focal Fossa Change the following line: deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian buster contrib to (use eoan codename): deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian eoan contrib Then remove the installed virtualbox and run: sudo apt...
VIrtualbox: NS_ERROR_FAILURE
1,547,805,805,000
We have a product based on a Raspberry Pi/Raspbian and use Debian packages to roll out upgrades to the software (written in Python). I'm having an issue with getting a new package installing correct, specifically with providing a working downgrade path. I'm a regular user of Debian, but new to the world of package man...
My solution was pretty much that suggested by @muru in comments: Put the new files in /opt/appname/bin in the package In postinst, backup files in /usr/local/bin and replace with symlinks to /opt/appname/bin. In postrm, remove the symlinks and restore the backups, if they exist.
How to handle files that should exist after a dpkg downgrade but are deleted instead
1,547,805,805,000
I am currently changing my Linux client from Ubuntu 16.04 to Debian 9.6, and I am trying to setup LDAP client authentication to debian machine. While setup, I noticed that the following command does not exist on debian sudo dpkg-reconfigure ldap-auth-config To setup Debian LDAP, I have no clue how to configure.
On Debian you'll probably want to apt install nslcd and configure it with your LDAP details (or dpkg-reconfigure nslcd if already installed), then install/(re)configure libnss-ldapd for including the LDAP data into the name database and finally libpam-ldapd to enable the PAM LDAP module, if you use PAM for authorizati...
ldap on debian, and ubuntu
1,547,805,805,000
I was updating my linux mint 18.3 to linux mint 19. The error I get is Cannot set LC_ALL to default locale: No such file or directory. Then I Restarted my System, after that I can't open the terminal. I used Ctrl+Alt+F3 to run command line and fixing the LC_ALL error by using the command sudo dpkg-reconfigure locales ...
The thing about error messages is that they tell you what's wrong. Your error message clearly says that there is an unterminated quoted string in /etc/environment. Once you read that, you should investigate that file to see if it looks odd with regards to double quotes. In a comment, you mention that your /etc/environ...
Syntax error: Unterminated quoted string
1,547,805,805,000
I'm running the latest Debian (Stretch/9.3.x) and preparing my system to install the latest PHP. I removed all pre-installed PHP packages except php-common. While invoking apt-get remove php-common I get the error as follows Removing php-common (1:49) ... Failed to stop phpsessionclean.timer: Unit phpsessionclean.time...
As mentioned by @GAD3R I edited /var/lib/dpkg/status and removed the whole php-common entry. Thereafter I run dpkg --configure -a The updates / (dist-)upgrades are running well now. Edit (2018-01-09) My purpose on wiping all default php-packages was to install PHP 7.2. While the php-common package is a dependency i...
removing package php-common fails on "phpsessionclean.timer"
1,547,805,805,000
I've copied a dpkg-status file backup from /var/backups to /var/lib/dpkg/status, but I would like to restore the status file to what it was before the copy. Will status-old in /var/lib/dpkg/status contain a copy of the status file before it was overwritten?
Compare the date when you modified /var/lib/dpkg/status, to the modification date of /var/lib/dpkg/status-old, by running the command ls -lt /var/lib/dpkg/ | grep status-old this will show you when /var/lib/dpkg/status-old was modified last. Just wanted to add this really nice answer in context to this question:Why yo...
When is /var/lib/dpkg/status-old created?
1,547,805,805,000
What is the correct preparation procedure before: sudo apt-get dist-upgrade ? My current setting follows: sudo dpkg --configure -a sudo apt-get install --fix-broken sudo apt-get update I wonder if this is the right sequence?
Supposing, the HP engineers have it right, their Pre-depend steps when installing hplip are: Under normal circumstances I don't recommend using --yes or --force-yes, though. Re-writen from the image, without --yes and --force-yes: sudo dpkg --configure -a sudo apt-get install -f sudo apt-get update
Correct preparation procedure before major system upgrade
1,547,805,805,000
I am trying to write a script where I have an if statement that has to check if a specific folder contains a package with specific extensions. If so, it then has to unpack it. if [ installation = "1" ]; then if ls /usr/local/src grep -qF ".tar.gz"; then tar -zxvf $package #it has to unpack the package ...
something like this? #!/bin/bash cd /usr/local/src if [ installation = "1" ]; then for package in *.tar.gz do tar -zxvf "${package}" done for package in *.tar.bz2 do tar -xvfj "$package" #it has to unpack the package done ./configu...
Checking an output for specific extentions in if statement
1,547,805,805,000
I am learning about Dockerfile and had not worked with curl before. When running this Dockerfile . The terminal output gives: And then: Googleing around tells me that there was an interactive dialog which could not be handled. The last command I saw in the terminal output was Step 7 : RUN apt-get install cu...
You have three options: ignore the messages as they seem to be non-fatal. replace every RUN apt-get install ... with RUN DEBIAN_FRONTEND=noninteractive apt-get install ... add ARG DEBIAN_FRONTEND=noninteractive after the FROM ... line at the top. Using option 3 the first few lines of you linked dockerfile should loo...
debconf error messages from apt-get install line in Dockerfile
1,547,805,805,000
I want to set Chromium my default internet browser i.e. Chromium is being launched as the primary internet browser from other applications and that I do not receive the notification about Chromium not being the default internet browser at its startups. I think changing the priority to the highest and set it default i...
There are several (unrelated) questions in this, depending on definition of default; and each of those has its own solutions. for launching in Desktop Environment, browser which will be started is usually specified in Debian alternatives system as stated in question (and is already set to Chromium!). of course if us...
Why failing to increase Chromium's priority and set it default internet browser in Debian?
1,547,805,805,000
I'm trying to install the Redox-OS files via curl -sf https://raw.githubusercontent.com/redox-os/redox/master/bootstrap.sh -o bootstrap.sh && bash -e bootstrap.sh (as referenced in the Book) and I get the Unable to locate package libc6-dev-i386. When installing the libc6-dev-i386 via packages.ubuntu.com and using the ...
The "wrong architecture 'amd64'" error is because you tried to install a 64-bit ("amd64") package on a 32-bit ("i386") system. The libc6-dev-i386 package is sort of a strange one because it's built only for 64-bit systems, but it actually contains 32-bit software. It's meant to help with compiling 32-bit programs on...
Error: Wrong architecture 'amd64' & Unable to locate package libc6-dev-i386 [Install libc6-dev-i386]
1,453,479,828,000
I need rabbitmq-server installed on Ubuntu. Rabbitmq-server tries to start itself on install, and on many dpkg and apt-get commands thereafter. (Having it run on install is intentional, according to the instructions.) On this box, rabbitmq server can't start, and it takes about a minute to give up. I don't want to fix...
An easy way to fix this is to make the post-installation start a no-op. The rabbitmq-server.postinst is located in /var/lib/dpkg/info, like all the other postinst scripts, and the jessie version contains the lines: # Automatically added by dh_installinit if [ -x "/etc/init.d/rabbitmq-server" ]; then update-rc...
Defeat rabbitmq-server dpkg autostart
1,453,479,828,000
apt-get update && apt-get upgrade You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: libxrender1 : Breaks: libxrender1:i386 (!= 1:0.9.7-1+deb7u1) but 1:0.9.7-1+deb7u1+b1 is installed libxrender1:i386 : Breaks: libxrender1 (!= 1:0.9.7-1+deb7u1+b1) but 1:0.9.7...
This is a known bug. See Debian bug report 782505. Briefly, this is a security fix gone wrong. Less briefly, the package libxrender1 for the archs i386 and amd64 have different contents for the shared changelog file /usr/share/doc/libxrender1/changelog.Debian.gz. This is of course not allowed by dpkg. https://bugs.deb...
Debian dpkg error > libxrender1
1,453,479,828,000
I have installed package_a with version 1.0. How to configure package control script for package_b (e.g version 1.1) to automatically replace package_a? tried (as described in 7.6.2): Package: package_b Version: 1.1 Conflicts: package_a Provides: package_a Replaces: package_a with and without version (<< 1.1, on Rep...
It's not supposed to work on apt-get upgrade. The reason is that it's not a straight-forward upgrade. In this case, apt has to remove package_a and install package_b for it to do an "upgrade", and apt will only do direct upgrades (new version of an installed package and any additional dependencies installed) when runn...
Rename Debian package automatically pulled by apt-get upgrade
1,453,479,828,000
I've tried to install oracle-java7-installer package from custom repository onto Ubuntu 12. It was failed during executing some post-installation script. So. I want just to rollback it and proceed with another solutions (to install java 7 jdk). I've tried to make UPDATED with set -x > sudo aptitude remove oracle-...
That package appears to be buggy and of poor quality. The way to work around the buggy code in the maintainer scripts is to simply replace them with a noop script that will return true. Replace /var/lib/dpkg/info/oracle-java7-installer.prerm and /var/lib/dpkg/info/oracle-java7-installer.postrm with the following: #!/...
Ubuntu Could not purge package
1,453,479,828,000
I'm trying to understand how the creation of packages (rpm, deb, dpkg) work and what the architecture supports and doesn't. Right now I struggle figuring out what happens when the installation or upgrade of a package fails at different points of the process -ie, error on a scriptlet, not enough disk space (is this che...
For Debian (and typically, derivatives), this is described in the Debian Policy chapter on maintainer scripts and the corresponding flowcharts. Errors are handled in combination by dpkg (the tool which handles package extraction etc.) and maintainer scripts. When upgrading a package: the existing package’s pre-remova...
Package installation failure and rollback options
1,453,479,828,000
I am still on Debian Buster, which has old libraries in its repository. I am unable to use newer software, because for example, they require a libc.so.6 library with version GLIBC_2.30, which doesn't exist in the buster main repository. People write that you shouldn't mix and match packages from different repositories...
Usually when you use an older version of an operating system, you're limited to older software and libraries that perhaps were current at the time of the OS version's release. In some cases you can install non-conflicting newer versions of some libraries, but by and large support goes the other way -- old libraries ar...
Do you have to install newer Debian versions to use newer software?
1,453,479,828,000
I'm installing the fcgiwrap package on the nginx Docker image (based on Debian Bullseye), and some files seem to be missing. This is probably something obvious, but I can't find an explanation, here is everything I tried: 1. Building a Docker image with the package FROM nginx:latest RUN apt-get update \ && apt-ge...
I guess I asked too early, it looks like some Docker images disable installing documentation by default, using rules similar to these: https://askubuntu.com/a/541061, in the file /etc/dpkg/dpkg.cfg.d/docker.
Missing files after installing package on NGINX Docker image
1,453,479,828,000
Using Linux Mint 19 after installing Minecraft I get the error below after every install or update: minecraft-installer package post-installation script subprocess returned error exit status 8 Tried sudo dpkg --configure -D 777 minecraft-installer which seems to show an issue with resources required by the post insta...
The last line of the output/error message explains the problem. 2019-05-11 13:56:49 ERROR 404: Not Found. The URL is pointing to a resource that does not exist. Looks like a problem in the package/installer, or a file on the web has the wrong name/path. I suggest you contact support for the application itself and ask...
Mint 19 package install and update error message for minecraft-installer
1,440,255,862,000
Cannot delete or install anything with apt, on both my own user and the root. Whenever I try I get the following error: dpkg: warning: 'dpkg-deb' not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin a...
Since you can still run dpkg, at least part of the dpkg package is still present. To restore dpkg-deb, you should try re-installing dpkg: download the appropriate package file (Mint 18.3 is based on Ubuntu 16.04, so look for Xenial on this page to get the appropriate links; the download link I’m giving here assumes y...
'dpkg-deb' not found in PATH or not executable
1,440,255,862,000
I am unable to reinstall a package (libturbojpeg0). I have the following error # dpkg --audit The following packages are in a mess due to serious problems during installation. They must be reinstalled for them (and any packages that depend on them) to function properly: libturbojpeg0:amd64 Tu...
You should ask apt-get to reinstall it: apt-get --reinstall install libturbojpeg0:amd64
The following packages are in a mess due to serious problems during installation
1,440,255,862,000
If package A depends on package B, if I reinstall package B, what would happen to A? Will it be forever removed? Will it be removed, and then reinstalled? Will it simply be ignored by the package manager? I am mostly interested in RPMs (so rpm, dnf and yum tools), but I also need to support deb packages. rpm --replace...
if I reinstall package B, what would happen to A? Nothing. Will it be forever removed? Will it be removed, and then reinstalled? Will it simply be ignored by the package manager? No, No, and also no: Since a reinstallation doesn't change anything (not even transitory) about the dependency graph, the package is una...
Does reinstalling package also reinstall dependencies?
1,440,255,862,000
I compiled and packaged QEMU for my Raspberry Pi, but apt thinks that by installing it I'm "downgrading" from 1.3.1 (latest available in the repos) to 5.2.50 (my deb). so now every time I run apt upgrade apt "upgrades" from 5.2.50 (my deb) to 1.3.1 (latest available in the repos). for now I'm using sudo apt-mark hold ...
The appropriate fix is to use the right version number, not to try and hold the package by removing locks in the postinst. The QEMU package you’re replacing has an “epoch”, the number before the colon in the version number, “1:3.1...”. Your version number needs this too, i.e. “1:5.2.50...” apt will then consider your ...
How to hold package from updating with postinst script in DEB
1,440,255,862,000
When I do apt-show-versions samba on my Debian machine, I get something like samba:amd64/buster 2:4.9.5+dfsg-5+deb10u1 uptodate Comparing this to the samba versions, which you can find at the official sources, I would assume, that samba 4.9.5 is installed. But what are the other numbers and letters? My guess is that...
The full description is given in Debian Policy; in this specific version: 2 (before the :) is the epoch, basically a Debian-specific counter which is used when the main version number “goes back” 4.9.5 is the upstream version, matching Samba 4.9.5 +dfsg is a suffix indicating that the upstream sources were repackaged...
What does the version string from dpkg/aptitude/apt-show-versions mean? [duplicate]
1,440,255,862,000
Suppose I have a set of scripts and a python environment that supports them and their dependencies. I would like to automate the activation of the python environment so that, for my particular use case, the user's .bashrc/.zshrc gets updated so as to "source" the python environment. What is the correct/debionic way ...
Global shell settings go in /etc/profile.d but I'd advise against modifying every users environment away from standard. It would seem better to add the needed python packages to the default envronent instead, or to invoke the special envronment only when needed.
Debian Packages: How to handle installs that require the addition of content to a bashrc to become active?
1,440,255,862,000
I just created a debian package with dpkg-deb --build debtest and when installing the package which containing a simple c-app a warning comes up Lintian check results for /home/john/deb/debtest-1.0.deb: E: debtest: wrong-file-owner-uid-or-gid makefile 1000/1000 E: debtest: wrong-file-owner-uid-or-gid usr/ 1000/1000 ...
Lintian checks the quality of your Debian package; generally speaking you can ignore its output for a simple package if you're not concerned about distributing the package. It's complaining about the ownership of the files in your package; they should be owned by root, not john (I'm guessing you're the user with uid 1...
Creating debianpackage - the package is of bad quality
1,440,255,862,000
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 install emacs/bookworm-backports So now I have two versions of Emacs with the same package name. I was re...
So now I have two versions of Emacs with the same package name. As said before: no. You really don't. You upgraded your emacs metapackage from 28 to 29. That's it. As a matter of fact, that should be it, but sadly debian's emacs packaging is slightly broken: the emacs metapackage should depend on any underlying emac...
I have 2 versions of Emacs installed in Debian. How do I remove one of them?
1,440,255,862,000
In the context of adding capabilities to BaseX,I can see some information about a package: nicholas@mordor:~$ nicholas@mordor:~$ apt show basex Package: basex Version: 9.0.1+ds-1 Priority: optional Section: universe/database Origin: Ubuntu Maintainer: Ubuntu Developers <[email protected]> Original-Maintainer: Alexand...
The lib directory can be found in the full distributions of BaseX, which can be downloaded from the official homepage. See Startup: Full Distributions for more information.
How and where to find out details on which directories and files a package effects?
1,440,255,862,000
Before I upgrade to Debian Bullseye, apt-file was pretty logical. Now I can't get it to work. What am I doing wrong? Did the behavior change? # apt-file update Hit:1 http://repo.steampowered.com/steam precise InRelease Hit:2 https://updates.signal.org/desktop/apt xenial InRelease ...
The mention of dkms in the path is important: dkms is the "Dynamic Kernel Module Support (DKMS)" system. Those kernel modules were built on your system using files provided by some packages; they are not provided directly by those packages and so are not owned by those packages. So, neither apt-file nor dpkg can help;...
apt-file can not find a dkms file
1,440,255,862,000
I understand the the configuration files for unattended-upgrades in which you determine if you want only security upgrades or other upgrades as well, are located in a bit "dynamic" locations that could change between specific debian distros and their versions. Is there a general command structure to control these in a...
APT configuration files are read in the following order: the file specified by APT_CONFIG if any; files in /etc/apt/apt.conf.d; /etc/apt/apt.conf. Later files override earlier ones, so in practice the best place to put settings is /etc/apt/apt.conf; that will override any setting defined in a file in /etc/apt/apt.co...
Debian agnostic, version agnostic way to configure update preferences in unattended-upgrades
1,440,255,862,000
I tried to install docker on my raspbian install and accidentally broke apt-get If I run apt-get install or upgrade, I get the following error: E: The package debconf needs to be reinstalled, but I can't find an archive for it. I've tried all the suggested solutions I could find online, some examples: Command: apt-g...
You're missing your main Raspbian archive, which should be in your sources.list: anthony@Kilby:~ $ cat /etc/apt/sources.list deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' deb-src http://archive.raspbian.org/rasp...
debconf is broken, can't install anything anymore
1,440,255,862,000
I have two identical directories in /usr/lib/jvm on my Debian machine. /usr/lib/jvm/java-1.8.0-openjdk-i386 /usr/lib/jvm/java-8-openjdk-i386 And I want to get rid of what is not needed. $ dpkg -S /usr/lib/jvm/java-8-openjdk-i386/bin/javac openjdk-8-jdk-headless:i386 $ dpkg -S /usr/lib/jvm/java-1.8.0-openjdk-i386/bi...
If you run ls -l /usr/lib/jvm you’ll see that java-1.8.0-openjdk-i386 is a symlink to java-8-openjdk-i386, so there’s nothing to get rid of. In such cases dpkg -S only finds the symlinks, it doesn’t dereference them: dpkg -S /usr/lib/jvm/java-*-openjdk-i386 should indicate that both “directories” come from openjdk-8...
Find the package that installed /usr/lib/jvm/java-1.8.0-openjdk
1,440,255,862,000
I am trying to use the dpkg -b to build a package . The package directory structure looks like : ubuntu@ip-10-241-62-56:~/USB_RnD_DEB/BACKUP/usblinux1.1$ tree . ├── DEBIAN │ └── control └── usr ├── bin │ └── usblinux-runner.sh └── share └── usblinux |-->installer.sh ...
That's normal, installing a package doesn't run any of its binaries by default (otherwise imagine what fun we'd have installing e2fsprogs and the like!). If you want the usblinux-runner.sh script to run automatically after the package is installed, you need to add a postinst script, which will run usblinux-runner.sh. ...
dpkg only UNPACKS and Doesn't INSTALL, why?
1,440,255,862,000
$ sudo dpkg --configure -a Setting up sandboxgamemaker (2.7.1+dfsg-2) ... Cleaned old data --2013-11-01 18:28:33-- http://sandboxgamemaker.com/sandbox/PlatinumArtsSandbox 2.7.1Multiplatfrom.zip Resolving sandboxgamemaker.com (sandboxgamemaker.com)... 173.236.241.215 Connecting to sandboxgamemaker.com (sandboxgamemake...
As far as I can tell, it's running correctly. Once a deb package get installed, a post installation script get executed. In this case, it tries to download something from the internet. So you need to wait until it finishes, and see if anything else goes wrong. Otherwise it's just fine.
dpkg --configure -a not working
1,440,255,862,000
I'm making a script to build a git package in Debian format (.deb). This package requires the following debian packages: cmake, libturbojpeg0-dev, libjpeg62-turbo-dev, libglx-dev, opencl-headers, libgl-dev, libegl-dev, libx11-dev, libxtst-dev, libglu1-mesa-dev, libxcb-keysyms1-dev, libxcb-glx0-dev and libx11-xcb-dev S...
Instead of writing your own script to do this, you should list the build dependencies in the package’s control file and use mk-build-deps (or any package-resolving build tool, e.g. pbuilder, sbuild etc.). See Automatically install unmet build dependencies as detected by dpkg-checkbuilddeps for details. If you don’t wa...
Help for script which install on Debian a package, only if is not installed
1,440,255,862,000
EDIT solution: The problem was that I thought the package installs the driver but it was not the case (more about it in the accepted answer). When installing Nvidia driver I suggest going with .run file from archive here - if you need specific version, which was my case so I could not just autoinstall. The .deb packag...
It’s not installing the package because the package is already installed: nvidia-driver-local-repo-debian10-460.91.03 is already the newest version (1.0-1). This package ships all the packages needed, but doesn’t install them; to do that, you need to run sudo apt update sudo apt install nvidia-driver
"apt install <name>.deb" not correctly installing Nvidia driver in the deb package
1,440,255,862,000
I have downloaded a .deb file but when I install it, it complains that a bunch of packages are not installed. I am using a very bare bones focal Docker image. dpkg: dependency problems prevent configuration of wkhtmltox: wkhtmltox depends on fontconfig; however: Package fontconfig is not installed. wkhtmltox depen...
You can’t make dpkg do this; the appropriate tool is apt. Instead of dpkg -i /path/to/package.deb use apt install /path/to/package.deb
Run dpkg so that it installs dependent packages
1,440,255,862,000
Web search found links of dpkg failing when using apt. This What is the difference between apt-get and dpkg? accepted answer says: apt-get makes use of dpkg to do the actual package installations. I encountered a situation when dpkg -i /path/*.deb produced errors when installing bless, I've tried to reproduce: booti...
dpkg -i attempts to process every package file, in the order specified on the command line. You used glob expansion (*), which usually means alphabetical order. But as you can see from these messages, the package dependencies mean they have to be installed in a specific order: ca-certificates-mono pre-depends on mo...
Apt installs fine whereas directly using dpkg fails
1,440,255,862,000
I have Ubuntu 16.04.7 LTS installed on one the machines. I used to experiment with other kernels (currently it boots with 4.15.0 built manually from the sources), so somehow I damaged the package linux-image-4.15.0-13-generic which came along with the distro. In particular, /lib/modules/4.15.0-13-generic/* is missing ...
Have you already tried simply reinstalling it? $ sudo apt-get --reinstall install linux-image-4.15.0-13-generic That should not damage the system.
package misses files -- how to fix package?
1,440,255,862,000
In arch based system pacman -r/ --root can be used to provide an alternate root to install packages. This sometimes can be a solution to installing package at different location/ partition, dependency conflict etc. So I'm wondering if there exists any similar solution for debian based systems?
Yes, both tools have an equivalent (based on your description): dpkg’s --root option, and apt’s RootDir setting. Both of these change the root directory (temporarily) for everything used by the tools, including configuration, state, package information etc.; they’re intended more for manipulating a mounted system in i...
apt/ dpkg equivalent to pacman -r
1,440,255,862,000
I downloaded jdk-13.0.2_linux-x64_bin.deb from oracle and installed using dpkg. However, update-alternatives --config java doesnt show java13. How do i get the java -version to java13 now?
Although it's answered, I'll give you another answer in case you need Oracle/Sun Java (some applications may work only with it, not openjdk). Download the generic Linux .tar jdk from Oracle, not .deb specific for Debian. Untar to a path, for example /opt/SunJava. (I kept Sun in the path, I had it like this before it w...
How to install Java 13 to Kali Linux?
1,440,255,862,000
I want to install a package manager on an embedded system that does not currently have one. I know that the best way to do this is to use bitbake to simply bake a new image which includes a package manager and then flash that image to the board, but unfortunately I don't currently have access to all of the necessary p...
Installing dpkg built for something else on a different distribution to manage software built also elsewhere does not sound like a great idea. This is going to be fraught with binary compatibility problems and subtle errors, as this would be the equivalent of using dpkg with --force-all and disregarding any dependency...
Where can I get a tarball of the debian package manager for aarch64?
1,440,255,862,000
I need some online service that gives me a list like this command: apt-cache pkgnames | sort Any hints?
Go to packages page at debian.org. Select the branch (stable / testing / sid) you need, go to a next page, in the bottom there will be a link to all packages page. E.g. this is a page with all packages for debian stable.
How do I get a list of all existing Debian packages of all architectures online?
1,440,255,862,000
Whenever I run apt install to install a package it fails. I get this output at the bottom. It seems to go fine until it asks for permission ([y/n]) then is immediately followed by this output, everytime. I do it as root always, I have changed ownership of /etc/environment so everyone can write to it. when I run dpkg -...
There is clearly a syntax error in /etc/environment. Maybe a stray space, it's impossible to tell for sure from the error message alone. Just fix that error. You say you're setting PATH; the PATH=… line shouldn't have any spaces in it. The path separator is a colon :. The syntax of /etc/environment is just VARIABLE=VA...
/etc/environment: /root: Permission denied
1,440,255,862,000
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 of archives. After this opera...
This is now a known bug and has been submitted by another person on launchpad. The link to the bug report is here.
Unable to install any packages Ubuntu 23.10
1,440,255,862,000
I am making a DEB package that relies on avahi-daemon. I need to set its configuration, but I got this error message: trying to overwrite '/etc/avahi/avahi-daemon.conf', which is also in package avahi-daemon 0.8-5+deb11u2 What is the standard procedure to do such configuration? I do not want to use --force-overwrite...
If you really want to ship a replacement avahi-daemon.conf (potentially losing other changes made by the local system administrator), you need to declare that your package replaces avahi-daemon. This is valid even for partial replacements. Add an entry in debian/control: Replaces: avahi-daemon Another approach which ...
dpkg: overwrite file in another package
1,440,255,862,000
I am toubleshooting a basic .deb package built from the include script below, specifically its operation if it is installed twice via dpkg -i <package-name>. I found that the postrm script is always called. The official maintainer scripts do not show a case for the same package being installed twice. When I install ...
It seems to me that instead of trying to distinguish initial installations, upgrades and repeat installations, you might want to change your postrm so that it only removes the user on purge. That way, the user remains during upgrades etc. and is only removed if you remove the package with apt purge or dpkg --purge (or...
Installing .deb package twice calls postrm
1,440,255,862,000
I am creating a package that depends on the ROS package ros-noetic-moveit-core. More specifically, it contains a shared library linking against libmoveit_robot_model.so. libmoveit_robot_model.so is i a symbolic link to libmoveit_robot_model.so.1.1.7, so libmoveit_robot_model.so.1.1.7 ends in the NEEDED section of my s...
This is indeed a packaging problem (and arguably, a library definition problem). Before I get to that, here’s what you can do to fix it: you can specify your own shlibs line, either in debian/shlibs.local in your package’s source code, or in /etc/dpkg/shlibs.override. Add a line of the form libmoveit_robot_model 1.1.7...
dpkg-shlibdeps do not give version information
1,440,255,862,000
I have a related question, but was asked to open a new one. I would like to recompile the Debian package wpasupplicant with IPv6 disabled. I know basics of Debian package compilation, ie: apt-get source wpasupplicant dpkg-buildpackage --build=binary --no-sign What do I have to change, to disable IPv6 completely? Also...
Here is an example how to compile wpasupplicant posted in linuxfromscratch . To disable IPV6 support you need to remove CONFIG_IPV6=y from wpasupplicant build configuration file (.config). You need to install some dependencies: sudo apt install -t buster-backports checkinstall sudo apt install desktop-file-utils libx...
recompile wpasupplicant Debian package with IPv6 disabled
1,440,255,862,000
I want to check whether or not a package has been installed. I need a precise match. There will find the packages that start with nginx $ dpkg -l | grep -w 'nginx' ii nginx 1.18.0-0ubuntu1 all small, powerful, scalable web/proxy server ii nginx-common ...
As explained in A package exists in dpkg but it can't be installed via apt, use dpkg-query: dpkg-query -W -f '${db:Status-Status}' nginx This will show “installed” if, and only if, the nginx package, and only that package, is fully installed. If dpkg-query doesn’t work for you, specify the package as an argument to d...
How to find an installed package, if it exists, by precise name?
1,440,255,862,000
I am drowning, would any one of us be so kind to throw me a lifesaver... in time :) I am adventuring myself in deployment a .NET Core Worker Service app in Linux. Am trying to create a package for that. This article seems to tackle exactly what I want to achieve. Have followed it, but my dpkg-buildpackage -b --no-sign...
When building a package, instead of installing files to their final locations, you need to install them to a “marshaling” area. In Debian packages that’s in a directory with the same name as your binary package, inside debian: install -D -m 755 bin/Debug/netcoreapp3.1/linux-x64/publish/* debian/netcoreapp/opt/myApp (...
Why is this install command returning 1?
1,440,255,862,000
I've had this .deb package that I built with, I think, checkinstall, directly from its git source; and it got a version like libmypackage1_0.10.7-1_armhf.deb. Then after a some months, I did a git pull in the same source, and built new version of the .deb, but it again got the libmypackage1_0.10.7-1_armhf.deb name. No...
buildinfo information isn’t currently kept with deb packages. There are a number of other ways to determine the information you need. deb packages preserve timestamps, so assuming you can trust them (which seems to be the case here), looking at the timestamps of the files installed by the packages will give you a good...
Any way to retrieve build info for apt/dpkg installed packages?
1,593,441,682,000
I recently had to use this command as I got some error due to nvidia package diversion, but I don't exactly know how it is working: LC_MESSAGES=C dpkg-divert --list '*nvidia-340*' | sed -nre 's/^diversion of (.*) to .*/\1/p' | xargs -rd'\n' -n1 -- sudo dpkg-divert --remove sudo apt --fix-broken install I read about L...
LC_MESSAGES=C dpkg-divert --list '*nvidia-340*' lists all the diversions matching the glob pattern *nvidia-340*, in English so that the output is of the form “diversion of ... to ... by ...”. sed -nre 's/^diversion of (.*) to .*/\1/p' extracts the text between “diversion of” and “to”, i.e. the name of the diverted f...
What do these options on dpkg-divert and sed do as it relates to Nvidia package diversion?
1,593,441,682,000
When I open the terminal a line Install package 'dpkg' to provide command 'dpkg'? [N/y] appears. Is there a way to track which program is trying to run this command? I am clueless why this appears in terminal. I am using Fedora 30 and zsh.
This solved my issue. Thanks all of you! The code solving the problem was made into pull request so all I needed to do at the end was to update oh-my-zsh.
Terminal wants to install dpkg
1,593,441,682,000
I ran the command dpkg -l before I removed two updates from Debian 8.11. I then did sudo apt-get remove openssl and sudo apt-get remove --purge wget and rebooted the device. When I did dpkg -l it showed me the exact same version as before I removed it. The only way I could tell it was removed was by running the sud...
If you remove a package, dpkg -l will still show it if it still knows about it. To determine the package’s status, you need to look at the first column: this will show ii for installed packages, rc for removed packages which are still configured, un for non-installed packages, and various other values summarised in th...
dpkg -l still shows new version of file