Skip to main content
23 votes

How do I get apt-get to ignore some dependencies?

An alternate way to manually tweak the dependencies is: apt-get download yourpackage dpkg-deb -x yourpackage.deb PackageFolder dpkg-deb --control yourpackage.deb PackageFolder/DEBIAN vim ...
AndrewHarvey's user avatar
12 votes

How do I get apt-get to ignore some dependencies?

You can download the package with apt-get and then install it with dpkg, manually listing the dependancy you would like to be ignored. For example if I want to download mypackage but it depends on ...
A.Badger's user avatar
  • 251
8 votes

Debian: "apt install build-essential" fails because of unmet dependencies

Your problem here is that at some point in time, you installed a package from a source which contained a newer libc6, and that version of libc6 got installed. Now your packages are broken, since the ...
Lacek's user avatar
  • 7,483
7 votes
Accepted

Why does "apt-get autoremove sendmail" leave dependencies behind?

sendmail is a meta package consisting of a set of dependencies. When you install the sendmail metapackage it installs sendmail-bin, amongst other things. This provides a recommended package for cron, ...
Gav's user avatar
  • 191
6 votes

How to list RPM dependencies?

People have already responded with: rpm -q --requires PKG yum -q deplist PKG Yes, either rpm or yum works and correctly answers the question. The main difference between rpm and yum is that yum ...
Suave-V's user avatar
  • 61
6 votes
Accepted

libc6 dependency mismatch in Debian 9.12 stretch

You configured your system to use packages from several distributions at once (a so-called Frankenstein-Debian), so dependency errors are normal. Run cat /etc/apt/sources.list{,.d/*.list} in bash to ...
Piotr P. Karwasz's user avatar
5 votes

How do I ignore unmet dependencies while using apt-get remove?

dpkg --remove DOES remove the packages without complaining about the failed install. That get you disk space to do apt-get -f autoremove
Johan B.W. de Vries's user avatar
5 votes

How can I predict systemd's shutdown order?

Maybe stating the obvious reduces the learning effect, but all I did to get the full list of reverse dependencies for shutdown-target as asked in the original post, was: systemctl list-dependencies --...
ilp68's user avatar
  • 51
5 votes

Debian: How to use "apt-get install" without upgrading dependencies?

On Debian 8 I've found the option --no-upgrade can help achieving the desired result. For example: apt-get install --no-upgrade php7.0-xmlrpc
Andrii S.'s user avatar
  • 159
5 votes

Duplicity 0.7.10 fails after upgrading librsync in Ubuntu 14.04

To get librsync.h then sudo apt-get install python-dev sudo apt-get install librsync-dev work for me.
pl.smith's user avatar
4 votes

apt-get dist-upgrade failing on mssql-tools and msodbcsql17 packages, ubuntu 16.04

The new msodbcsql17 package does not correctly conflict with v17 of the old msodbcsql package. You can't have both installed. You can have the old v13 version of msodbcsql installed. For me, I just ...
Tim Riker's user avatar
4 votes
Accepted

How to interpret this yum dependency error?

The version of xorgxrdp currently in EPEL was built against RHEL 7.7, specifically against (among other packages) the xorg-x11-server-Xorg package version shipped in RHEL 7.7, but you are running ...
Michael Hampton's user avatar
4 votes
Accepted

Cannot install sshd (openssh-server) on debian 10.4

It seems that during the install, you answered "No" to the question "Use a network mirror?", and so your system left configured without a mirror (or maybe you didn't have a network connection during ...
Lacek's user avatar
  • 7,483
3 votes
Accepted

Let's Encrypt certbot-auto setuptools version error when run from cron

This is the issue: HOME=/ To fix it HOME variable with /root value needs to be passed to the script: env HOME=/root /path/to/certbot-auto
Karol Jędrzejczyk's user avatar
3 votes

How to list RPM dependencies?

I have quick shell snippet which prints out all installed packages along with their dependencies: for i in `rpm -qa` ; do echo "Package [$i]:"; rpm -q --requires $i ; echo ; done
Daeon's user avatar
  • 31
3 votes
Accepted

How to Identify Unnecessary Windows Applications

Have you tried things like this? If that doesn't work, do it the same way you set up whitelist based sandboxes... clone it to a lab environment, then remove things you probably don't need, and run ...
Peter's user avatar
  • 2,876
3 votes
Accepted

How to solve CentOS7 and "yum install php-7.2.3 " dependency issues upgrading to PHP 7.2.3

Remove the php-pecl-mongo package first. It's built for an ancient version of PHP and won't work with PHP 7.2. # yum info php-pecl-mongo Loaded plugins: product-id, search-disabled-repos, ...
Michael Hampton's user avatar
3 votes

Debian: "apt install build-essential" fails because of unmet dependencies

I had a similar issue.I resolve it by doing this: Before starting,if you don't have aptitude, you can install it by following these instructions:aptitude documentation If you have it already,you can ...
fany's user avatar
  • 31
3 votes

Can't upgrade certbot because of libc6 version

I would not recommend mixing and matching packages meant for different major versions of a distro because sometimes dependencies are pulled in that destablize the whole. If at all possible I would "...
Anon's user avatar
  • 1,255
3 votes
Accepted

Understanding and resolving dependencies on Centos 7

You can interpret the errors as follows from this example: Error: Package: php72w-pecl-imagick-3.4.3-1.2.w7.x86_64 (@webtatic) Requires: libMagickCore.so.5()(64bit) Removing: ...
Michael Hampton's user avatar
2 votes

How do I get apt-get to ignore some dependencies?

How To Exclude Packages from Apt-Get Upgrade Using apt sudo apt-mark hold package_name Using dpkg echo "package_name hold" | sudo dpkg --set-selections Using aptitude sudo aptitude ...
Cha's user avatar
  • 21
2 votes

DEB: "Provides:" field ignored

The section of the Debian Policy Manual quoted in @cavedon's answer is still unchanged, but outdated. Since dpkg 1.17.11 setting a version on a provided package is possible. From the changelog: ...
imsodin's user avatar
  • 129
2 votes

How can I predict systemd's shutdown order?

The following might help you : systemctl list-dependencies --before shutdown.target Regards,
Mohamed Salhi's user avatar
2 votes

Exclude or change package used as dependency in rpm package under CentOS

It's actually easy with rpmrebuild. yum install epel-release yum install rpmrebuild Then: rpmrebuild --edit-spec --package /path/to/your/bad.rpm Then edit the autogenerated spec file by renaming ...
Danila Vershinin's user avatar
2 votes

Make apt ignore a single recommendation

Install vim: sudo apt install vim Install vim without recommends: sudo apt install --no-install-recommends vim Install vim with recommends except xz-utils: sudo apt install vim xz-utils-
Михаил Сидоренко's user avatar
2 votes
Accepted

Does Puppet 2.7 allow a class inheritance of an unparameterized "params" class?

Your init.pp class should read: class myclass ( $zone = 'top', $base_url = $::myclass::params::base_url, $username = $::myclass::params::username, ) inherits myclass::params { You don't ...
J Earls's user avatar
  • 231
2 votes
Accepted

How to remove duplicates after a failed yum update?

It's possible that some packages were installed, but the old ones not yet removed, and the 'transaction' didn't finish, so you're in a weird state where package1 is too old to support package2. I had ...
Ralph Bolton's user avatar
2 votes
Accepted

How to run different role for different hosts in single ansible playbook?

I guess the easiest way to achieve this is to create a master playbook and define the order of playbooks there. It is possible to include playbooks inside a master playbook. [...] The plays and ...
Henrik Pingel's user avatar
2 votes
Accepted

Server / service reboot order

There is no out of the box tools for doing this. Everyone I know who does this rolls their own. At Stack Overflow we have our own software called (very creatively) "patcher" which takes care of this ...
Mark Henderson's user avatar
2 votes

How to interpret this yum dependency error?

Wanted to add this as a comment, but if you have the package installed on another machine you can copy it over and rpm install it. If this is a production environment maybe look at setting up your own ...
Drew Barrett's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible