Questions tagged [dpkg]

dpkg is a tool to install, build, remove and manage Debian packages.

From 'man dpkg': dpkg is a tool to install, build, remove and manage Debian packages. The primary and more user-friendly front-end for dpkg is aptitude. dpkg itself is controlled entirely via command line parameters, which consist of exactly one action and zero or more options. The action-parameter tells dpkg what to do and options control the behavior of the action in some way.

554 questions
237
votes
11 answers

How can I check the version before installing a package using 'apt-get'?

I'm thinking to install hylafax+ version 5.5.4 which was released last month on my Debian PC. I checked dpkg -l | grep "hylafax" and found out that the current version is 5.5.3. Then I checked apt-cache search hylafax and saw the packages are…
Yasiru G
  • 6,886
  • 6
  • 23
  • 43
92
votes
7 answers

Package php5 have no installation candidate (Ubuntu 16.04)

When i try to install php5 in Ubuntu 16.04 by using following code: sudo apt-get install php5 php5-mcrypt I get following error: Reading package lists... Done Building dependency tree Reading state information... Done Package php5 is not…
Srijan Karki
  • 1,576
  • 2
  • 14
  • 21
80
votes
2 answers

Ansible Command module says that '|' is illegal character

I am using Ansible to deploy my project and I trying to check if an specified package is installed, but I have a problem with it task, here is the task: - name: Check if python-apt is installed command: dpkg -l | grep python-apt register:…
Robert
  • 10,403
  • 14
  • 67
  • 117
51
votes
8 answers

dpkg-shlibdeps: error: no dependency information found for

I'm compiling a deb package and when I run dpkg-buildpackage I get: dpkg-shlibdeps: error: no dependency information found for /usr/local/lib/libopencv_highgui.so.2.3 ... make: *** [binary-arch] Error 2 This happens because I installed…
user1370912
  • 919
  • 2
  • 9
  • 15
38
votes
17 answers

dpkg: error processing package mysql-server (dependency problems)?

When I try to install mysql-server, an error comes like: dpkg: error processing package mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.7 mysql-server E: Sub-process…
Scott
  • 4,974
  • 6
  • 35
  • 62
35
votes
2 answers

What does the colon (:) and dash (-) in an Ubuntu dpkg version number mean?

I'm trying to get the version number of an already installed package, in order to build a dependencies list for a dpkg. If I type "dpkg -l | grep libqtcore4" into my terminal I get the following result: ii libqtgui4 4:4.7.4-0ubuntu8 Qt 4…
Andy J
  • 1,479
  • 6
  • 23
  • 40
31
votes
6 answers

Can't install StarUML in Ubuntu 16.04

I’m using ubuntu 16.04 - 64 bit. I tried to install Start UML with .deb file and got this message from Ubuntu Software: This software comes from a 3rd party and may contain non-free components Then I trying to install with dpkg, and got this: $…
Finn
  • 2,707
  • 2
  • 19
  • 28
30
votes
1 answer

dpkg : how to ignore error in post/pre scripts

I've develop debian packages and have syntax mistake in my post/pre script (postrm in my case). I install package successfully, but now i can't remove this package : /var/lib/dpkg/info/blablabla.postrm: 11: Syntax error: ";;" unexpected dpkg: error…
Reddy
  • 943
  • 6
  • 12
  • 21
28
votes
5 answers

How to create .deb packages on Mac OS X

I am trying to upload my app on Cydia and it requires .deb package. I am unable to figure out how to make .deb packages on mac. I am using 10.6.3 when I write this command on terminal dpkg-deb -b MyProgram Terminal output is -bash: dpkg-deb:…
iC7Zi
  • 1,528
  • 2
  • 15
  • 21
23
votes
9 answers

dpkg error: pycompile: not found

sudo apt-get remove --purge mysql-server mysql-client mysql-common I am getting the following error as I try to remove mysql using the above command: Reading package lists... Done Building dependency tree Reading state information...…
Kalyanam Rajashree
  • 652
  • 2
  • 11
  • 23
22
votes
2 answers

dpkg: How to use trigger?

I wrote a little CDN server that rebuilds its registry pool when new pool-content-packages are installed into that registry pool. Instead of having each pool-content-package call the init.d of the cdn-server, I'd like to use triggers. That way it…
TLindig
  • 48,010
  • 3
  • 28
  • 31
16
votes
3 answers

What is alternative to -dpkg for Mac?

I'm trying to use dpkg command but in Mac OS X it doesn't seem to work for me dpkg -scanpackages -m . /dev/null -->Packages -bash: dpkg: command not found dns:Administrator$ man dpkg No manual entry for dpkg I wonder how can I use the dpkg in…
Ali
  • 9,997
  • 20
  • 70
  • 105
16
votes
6 answers

Installing node.js on raspberry pi 2

I have installed Raspbian on my Raspberry Pi 2 and now I am trying to install node.js on it, however I am hitting an issue. I followed the instructions and typed these commands into the terminal wget…
slim1801
  • 531
  • 3
  • 8
  • 19
15
votes
2 answers

Can't remove, purge, unistall mongodb from debian

I'm trying to reinstall it, because it has problems. For example, I can't install Chromium because mongodb-org-server is not configured. But I can't even remove it for the same reason. apt-get autoremove --purge mongodb Or: apt-get purge…
user2502368
  • 467
  • 1
  • 4
  • 16
15
votes
1 answer

How to override dpkg-buildflags CFLAGS?

I got a package with: $ apt-get source and now I am trying to build it with: $ dpkg-buildpackage -uc -us -j8 At the beginning of the output, there is stated: dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2…
lvella
  • 12,754
  • 11
  • 54
  • 106
1
2 3
36 37