Questions tagged [dependencies]

Use this tag when asking about managing and resolving dependencies. In Ubuntu most applications have dependencies, programs that they depend on to run correctly. This means that installing a package sometimes requires other packages to be installed, and removing packages will cause others to be removed by APT to prevent them from breaking.

Applications often share code through development or runtime libraries and packages. This tag would apply in these situations (for example):

  • Resolving package management conflicts or unmet dependencies
  • Packaging build and install time specifications
  • Compile-time dependency fulfillment
  • Installing the correct runtime libraries

Related tags:

2849 questions
663
votes
14 answers

How do I resolve unmet dependencies after adding a PPA?

Occasionally, when I'm installing stuff, I get an error like the following: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages…
jrg
  • 60,101
  • 54
  • 172
  • 246
371
votes
8 answers

How to list dependent packages (reverse dependencies)?

In order to research what caused the installation of a given package, I'd like to get a list of packages which depend on that package. I couldn't find anything obvious in man dpkg.
l0b0
  • 8,529
  • 8
  • 42
  • 67
169
votes
4 answers

Can I see why a package is installed?

For a specific package, can I find out why it is installed? So, can I see or it's manually installed, or that it is installed as a dependency of another package? Or that it is installed as part of the distro?
Peter Smit
  • 7,467
  • 9
  • 42
  • 48
115
votes
1 answer

npm : Depends: node-gyp (>= 0.10.9) but it is not going to be installed

I want to install npm. I've updated everything but I can't fix the problem. The message I get is: Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean…
98
votes
4 answers

How can I install a package without installing some dependencies?

I'm trying to install the package LaTeXila, and the output looks like this: $ sudo apt-get install latexila --no-install-recommends Reading package lists... Done Building dependency tree Reading state information... Done The following extra…
Alex
  • 1,279
  • 1
  • 10
  • 14
86
votes
6 answers

The following packages have unmet dependencies!

I am writing this because I am very confused about installing PostgreSQL 9.3 on my Ubuntu 14.04. First I need it for my Python/Django development, and I ran into the problem when I tried to install it. Now I have this error and it is driving me…
copser
  • 1,366
  • 3
  • 14
  • 22
80
votes
6 answers

MongoDB Install Fails on Ubuntu 22.04 - Depends on libssl1.1 but it is not installable

Here are the standard installation instructions from the website: wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse"…
fIwJlxSzApHEZIl
  • 1,166
  • 2
  • 10
  • 21
75
votes
3 answers

How do I install ncurses header files?

I was trying to configure the kernel and I got the following error. Can somebody please tell me what I should do? root@nitr-desktop:/usr/src/linux# make menuconfig *** Unable to find the ncurses libraries or the *** required header files. ***…
user141332
  • 751
  • 1
  • 5
  • 3
59
votes
4 answers

Replace openjdk with oracle-jdk on Ubuntu

I have an ubuntu system and I want to replace my openjdk with oracle-jdk. However if I remove my open-jdk and then install oracle-jdk, when I try to install some packages they want to install openjdk and I don't want this. Is there any way to…
littleali
  • 717
  • 1
  • 6
  • 10
58
votes
4 answers

14.04 --> 16.04 failed; apt (>= 1.0.1ubuntu2.13)' is not installed

(This question was not resolved. Due to time constraints Computer was restored to factory settings.) I was attempting to upgrade from 14.04 to 16.04, but apt threw this error: The required dependency 'apt (>= 1.0.1ubuntu2.13)' is not…
58
votes
6 answers

How to install only the dependencies of a package?

Running sudo apt-get install will install the package, its dependencies, and any other recommended packages. However, there does not seem to be a way to install only the dependencies of a package and exclude the package itself. How would…
Nathan Osman
  • 31,915
  • 40
  • 179
  • 259
58
votes
3 answers

Install gcc on Ubuntu 12.04 LTS

When I try to install gcc on Ubuntu 12.04 LTS Server with apt-get install gcc, I get the following error: The following packages have unmet dependencies: gcc : Depends: cpp (>= 4:4.6.1-2ubuntu5) but it is not going to be installed Depends:…
Brian M. Hunt
  • 800
  • 1
  • 7
  • 10
55
votes
3 answers

How do I find the build dependencies of a package?

I'd like to find out which packages sudo apt-get build-dep would install (if I already got some dependencies installed, I'd also like to see those → so running or simulating the above is not enough). Command line preferred.
htorque
  • 63,950
  • 40
  • 194
  • 219
54
votes
3 answers

Sub-process /usr/bin/dpkg returned an error code (1) while upgrading python3.10

apt upgrade: $ sudo apt-get full-upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet…
Udesh
  • 783
  • 1
  • 6
  • 11
53
votes
6 answers

How to remove an uninstalled package's dependencies?

I want to install a package (DigiKam), but it has a lot of dependencies. If I decide I no longer need this software and uninstall it, will the now unnessary dependencies be removed? If not, how can I do it manually?
jfoucher
  • 22,644
  • 8
  • 29
  • 29
1
2 3
99 100