Questions tagged [dpkg]
dpkg is the package format used by Debian, Ubuntu and other popular GNU/Linux distributions as well as the tools used to work with dpkg packages.
175
questions
4
votes
1
answer
672
views
Debian: Get list of installed packages while in rescue mode
How can I get a a list of installed packages from a debian setup which is mounted to /mnt/ while using a rescue mode?
Scenario: Server crashed, only rescue mode possible. Setting up a new server, ...
3
votes
1
answer
7k
views
ubuntu using "force-yes" with `dpkg -i`
I have an update script for my system that updates from deb files:
find /packages/apt/ -type f -name "*.deb" -exec dpkg --force-depends -i {} \+
The problem is that nginx has a configuration file ...
2
votes
2
answers
13k
views
dpkg: error processing package
Im trying to install mongodbserver on ubuntu 14.04LTS with reference to mongodb docs but getting the dpkg related errors
root@c3:~# apt-get install -y mongodb-org
Reading package lists... Done
...
2
votes
1
answer
1k
views
apt - update local package
Some months ago I had to install gitlab-ce on a server with Ubuntu 16.04, no access to the public internet, so I downloaded the package from the Ubuntu repository on an other machine and then uploaded ...
0
votes
0
answers
562
views
How to speed up dpkg (binary) package build
I will be building debian package multiple times in a day, and each build takes
more than 8-9 minutes!
I was checking if there is any way to speed it up (dpkg-deb --build, binary pkg)
I tried to use ...
3
votes
1
answer
14k
views
Installing Debian package tools (dpkg-buildpackage) on Amazon Linux?
I am setting up a web server which packages and hosts different installers for client applications on Windows, Mac OS X, and Linux.
I am using EC2 so I went with Amazon Linux for my base image.
I ...
0
votes
1
answer
121
views
Is it possible for a debian package to be installed by multiple names through apt?
I have a package foo-new, which many new users know by its old name foo-old, so they try to execute apt install foo-old which does not work.
Is it possible through a control field to make a package ...
0
votes
1
answer
388
views
RPM to DPKG: Underscore in Package Name
I have a custom RPM which I convert to DPKG using the tool alien.
It works with one annoyance:
The input is called "foo_bar.rpm" and the output is called "foo-bar.dpkg".
We have a list of packages ...
5
votes
1
answer
1k
views
debian/ubuntu: Prevent UI prompting in command-line apt-get
So, in order to prevent console-UI (newt, snack, dialog) prompts during the dpkg post-install, you have to do something like:
debconf-set-selections <<< 'mysql-server mysql-server/...
0
votes
4
answers
2k
views
Bash if condition to check if a ubuntu package needs an upgrade?
I need a bash line to check if a ubuntu package needs an upgrade or not.
For example, I want to check if the package 'firefox' needs an upgrade using dpkg or apt-get commands.
Hypthetical Example:
#...
0
votes
1
answer
141
views
German Umlauts (but only uppercase) are broken
I have a proxmox3 server. I login via SSH. Umlauts (öäüÜÖÄ) works well - nevertheless if upper or lowercase.
Then I login in my openvz node (debian wheezy) via:
vzctl enter 100
In this node,
on ...
3
votes
1
answer
8k
views
Installing a package to an alternate location using 'dpkg' without root privileges fails with permissions errors
The command line I am using is
dpkg --force-not-root --root /some/other/location -i the_package.deb
but I get an error
dpkg: could not open log '/var/log/dpkg.log': Permission denied
I would have ...
1
vote
0
answers
727
views
Create custom package from nginx source - renaming nginx to custom-nginx
My dist is Ubuntu 14.04
use case
I am attempting to create my own packaged nginx called 'custom-nginx'. It needs to install itself into alternative directories as so it does not interfere with the ...
0
votes
1
answer
255
views
dpkg/apt-get updating a package - downtime?
I was wondering if apt-get/dpkg packages (.deb's) manage downtime at all when updating?
For example, when updating nginx (assuming it's already installed) via sudo apt-get install nginx, it looks to ...
3
votes
2
answers
1k
views
Hook into installation of Debian package
When installing packages with daemons, they often restart that service during installation/upgrade on Debian.
I got a daemon that has some options that can only be set on runtime, not configured. If ...
1
vote
2
answers
577
views
Sub-process Error
Im trying to move my Wordpress site from a managed VPS to my OVH dedicated machine and im in the middle of trying to install WP.
However following these instructions I get this error:
Setting up ...
-1
votes
1
answer
715
views
Dovecot install error: Sub-process /usr/bin/dpkg returned an error code
I am trying to install a mail server on my Raspberry Pi.
I have setup the FQDN and run apt-get update, and am trying to install postfix, mysql and dovecot with the command apt-get install postfix ...
0
votes
1
answer
39
views
run remote command to save debian package list
I'd like to backup the package list(dpkg) of some remote computers to a backup server: all of them running Debian. I already configured the rsa key to login remotely as root on the other computers ...
0
votes
0
answers
99
views
dpkg custom package name from source install
I want to be able to set a custom package name when installing a package using dpkg from source. Running this command:
dpkg -i /path/to/deb/ruby-2.2.0.deb
installs the package as:
ruby-2.2.0 2.2.0
...
0
votes
2
answers
41
views
Automatic retrieval of current mapping debian stable -> released name
I'm automating my customary debian setup using ansible.
The playbook is supposed to treat testing/unstable and stable differently: the former are to be maintained "clean", while the latte is to ...
0
votes
0
answers
1k
views
Dpkg dependency problems on Unpacking a package for Docker
I am building a debian package atlantis-builder.deb with folder structure as:
- deb
- DEBIAN
- control
- postinst
- postrm
- usr
- bin
...
1
vote
2
answers
2k
views
Check to see if "dpkg --configure -a" needs to be run
When something goes wrong in the middle of a dpkg configuration we need to run dpkg --configure -a before installing a new package.
Is there a way to check if "dpkg --configure -a" needs to be run? ...
2
votes
1
answer
1k
views
command line alternative to dpkg-reconfigure slapd
Is there a way to reconfigure slapd, providing all configuration options as command-line parameters/arguments?
My goal is to be find an alternative to the interactive UI.
Thank you
0
votes
1
answer
3k
views
dist-upgrade from Debian 7 (wheezy) to 8 (jessie) results in 'Failed to execute operation' errors
After upgrading Debian 7 (wheezy) to 8 (jessie), any system critical action results in one of the following messages appearing:
Failed to execute operation: Activation of org.freedesktop.systemd1 ...
2
votes
1
answer
3k
views
virtuoso-opensource 7.1: how do I build an ubuntu deb package, from github source, that includes isql?
Does anyone know how to create a virtuoso-opensource 7.1 ubuntu deb package, from source, that includes isql?
If I do a make install from the source, virtuoso-t and isql are installed to the /usr/...
1
vote
1
answer
13k
views
How to check dependency of debian package? [closed]
Before installing a Debian package, I want to check if the current system has all the depending packages installed. Below is what I am currently doing (using bsdgames as an example). Note, I do not ...
1
vote
0
answers
252
views
Broken apt trying to install Cassandra
While trying to install Cassandra on Ubuntu 13.10, the installation crashed and now I'm stuck with broken (?) apt-get.
Here is the output of an apt-get install -f:
Reading package lists... Done
...
1
vote
1
answer
788
views
Why does aptitude want to update the original kernel when I use backports?
On Wheezy I am using the current backports kernel, which I set up via
# echo "deb http://ftp.de.debian.org/debian wheezy-backports main" > \
/etc/apt/sources.list.d/wheezy-backports.list
# apt-...
0
votes
1
answer
73
views
Server shuts down during apt upgrades (specifically libdbus)
I woke up this morning to find my VPS down. I brought it back, couldnt find any reason for it being down (nothing in the syslog, etc) so figured it was my crappy provider. I ran apt-get upgrade and it ...
0
votes
0
answers
352
views
dpkg-query --show [package-name] prints out uninstalled packages
I removed mysql from Ubuntu server completely as below
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser mysql
sudo rm -rf ...
1
vote
1
answer
691
views
Reverse a command and disable su on Ubuntu
Whilst following an online guide on how to secure Ubuntu server, I ran this command on one of my test VM's.
sudo dpkg-statoverride --update --add root admin 4750 /bin/su
I know the intention of the ...
0
votes
1
answer
146
views
Dpkg: After comparing config files, how do I revert back to make my choice?
I'm part way through a fairly large apt-get upgrade which had 65 packages to be updated.
I've gotten to a config file "merge conflict" where both my local config (containing a licence key) and the ...
0
votes
1
answer
2k
views
How to automate cleanup of config files from past pkgs as reported by "dpkg -l | grep ^rc"
There are a number of pkgs that weren't removed with "apt-get purge" and I would like to automate cleaning them up.
You can't apt-get purge apache2.2-common because the pkg is already removed.
You ...
2
votes
0
answers
785
views
RabbitMQ start failure
I am trying to start RabbitMQ Server. And any way I do this, I get this error:
Starting rabbitmq-server: FAILED - check /var/log/rabbitmq/startup_{log, _err}
rabbitmq-server.
invoke-rc.d: initscript ...
2
votes
1
answer
3k
views
update nginx 1.4.4 to 1.4.5 trying to overwrite X which is also in package Y
I get this error while trying to upgrade:
Preparing to replace nginx 1.4.4-4~raring (using .../nginx_1.4.5-1~raring_amd64.deb) ...
Unpacking replacement nginx ...
dpkg: error processing /var/cache/...
3
votes
1
answer
3k
views
Prevent update-manager from overwriting my Configs
After installing a package with apt-get and then overwriting some package specific config files, whenever the system upgrades itself it tries to overwrite my custom configs with the package default ...
5
votes
3
answers
10k
views
syntax error: unknown user 'munin' in statoverride file
Server running Ubuntu 12.04 lts
I installed munin the other day on a server. I decided later to remove it with apt-get.
I noticed that not everything was removed from the installation so manually ...
5
votes
1
answer
3k
views
skipping dpkg-genchange step (Debian)
I'm building binary only package:
dpkg-buildpackage -b -us -uc
The build actually runs successfully, but I have deleted previous version of the package and now dpkg-genchanges complains:
...
2
votes
2
answers
15k
views
libapache2-mod-php5 uninstalled after update impossible to put back
I use Webmin to administrate my Ubuntu 12.04 x86_64 machine. Yesterday, as often, I got notified of updates and installed them. During the installation process, libapache2-mod-php5 has been ...
0
votes
1
answer
682
views
Ubuntu dpkg broken
I have an Ubuntu installation where /var/lib/dpkg is empty. Every apt-get command fails with this error :
E: Impossible de verrouiller /var/lib/dpkg/status - open (2: Aucun fichier ou dossier de ce ...
0
votes
3
answers
566
views
Trying to install package with dpkg - no space on disk
I have an issue with dpkg and disk space. When I installed my pc, I let the installer create partitions using lvm. My rootfs was created at 322MB, now I just have 97M left. The disk is full so there ...
2
votes
2
answers
10k
views
dpkg: error processing linux-image-amd64
After running
apt-get update
apt-get upgrade
apt-get dist-upgrade
apt-get install -f
dpkg --configure -a
I get the following Error:
dpkg --configure -a
Setting up initramfs-tools (0.112) ......
97
votes
4
answers
57k
views
dpkg-reconfigure: unable to re-open stdin: No file or directory
I am building a provisioning script for a ubuntu vagrant vm, on a ubuntu host, both 12.10 64bit When installing the following packages:
sudo apt-get -y install php5-xsl graphviz php-pear unison
I ...
0
votes
1
answer
97
views
Force apt-get not to upgrade a custom package dkpg [duplicate]
I've created my own deb package for Redis 2.6.11 instead of the very old default version for Ubuntu. All works well except when I do an apt-get upgrade it tries to install what it thinks is the latest ...
0
votes
2
answers
4k
views
installed post-installation script returned error exit status 1
I found many complains with same error but for different packages. However, i couldn't understand essence of this error and how to fix it. Pls. help if you have any clue about it.
It appeared first ...
0
votes
1
answer
455
views
postinst script in hand-rolled .deb reported not found
I had a quick dpkg/debian-izing question. I am trying to create a .deb(by hand - mostly for learning purposes) and I have rolled up an ar-chive with the control.tar.gz, data.tar.gz and the debian-...
3
votes
1
answer
988
views
What to do when local usernames conflict with network usernames
We use Puppet to manage our Linux desktop machines and SSSD to authenticate our users against a central authentication system. Recently when setting up a few new machines we found that puppet was ...
2
votes
2
answers
501
views
Search for installed unavailable packages (backports and 3rd party)
I would like to remove any packages that I installed from third party repositories. I recently installed some backports from PPA repositories, and I suspect one of them broke my Ubuntu 12.04 server ...
0
votes
2
answers
2k
views
How to enable sysstat from shell script in Ubuntu? [duplicate]
In Ubuntu, I can install sysstat using apt, e.g.
apt-get install sysstat
And then enable it via interactive prompt
dpkg-reconfigure sysstat
But I want automate the process using fully automated ...
3
votes
2
answers
9k
views
Debian removed /var/lib/dpkg/info/, is there a way to save the system?
Removed accidentally /var/lib/dpkg/info/, now I am having problems with installing/removing packages, it prompts errors, cause can not find the info about installed packages.
Is there any way to ...