Created
May 17, 2020 03:14
-
-
Save jayalane/8d9b62b0793daa7238636590eaa957db to your computer and use it in GitHub Desktop.
recover from qt4 removal in debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# pairs was just a package that randomly showed up in the broken dependencies. | |
# almost any apt-get command would have a spew of broken packages like this: | |
# # pairs : Depends: kde-runtime (> 4:4.10) but it is not installable | |
# Depends: libkdeclarative5 (>= 4:4.7.0) but it is not going to be installed | |
# Depends: libkdecore5 (>= 4:4.4.95) but it is not going to be installed | |
# Depends: libkdeui5 (>= 4:4.7.0) but it is not going to be installed | |
# Depends: libkio5 (>= 4:4.3.4) but it is not going to be installed | |
# Depends: libknewstuff3-4 (>= 4:4.4.0) but it is not going to be installed | |
# Depends: libphonon4 (>= 4:4.2.0) but it is not going to be installed | |
# Depends: libqt4-declarative (>= 4:4.7.0~rc1) but it is not going to be installed | |
# Depends: libqt4-svg (>= 4:4.5.3) but it is not going to be installed | |
# Depends: libqt4-xmlpatterns (>= 4:4.6.1) but it is not going to be installed | |
# Depends: libqtcore4 (>= 4:4.7.0~beta1) but it is not installable | |
# Depends: libqtgui4 (>= 4:4.6.2) but it is not going to be installed | |
apt-get remove pairs | grep ' : ' | gawk ' { print $1 } ' >> bad.a | |
apt-get remove $(apt-get remove pairs | grep ' : ' | gawk ' { print $1 } ') | |
apt-get remove $(cat bad.a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment