Created
August 29, 2012 13:25
-
-
Save pgroudas/3512452 to your computer and use it in GitHub Desktop.
Downgrade libqt on ubuntu 12.04
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 | |
export DEBIAN_FRONTEND=noninteractive | |
cat >>/etc/apt/sources.list <<END | |
# Needed for older versions of libqt (needed for cucumber and capybara/webkit) | |
deb http://archive.ubuntu.com/ubuntu oneiric main | |
END | |
apt-get update | |
apt-get remove -y libqtwebkit-dev libqt4-dev | |
apt-get -y autoremove | |
apt-get install -y \ | |
libqt4-dev=4:4.7.4-0ubuntu8 \ | |
libqt4-dbus=4:4.7.4-0ubuntu8 \ | |
libqt4-declarative=4:4.7.4-0ubuntu8 \ | |
libqt4-designer=4:4.7.4-0ubuntu8 \ | |
libqt4-help=4:4.7.4-0ubuntu8 \ | |
libqt4-network=4:4.7.4-0ubuntu8 \ | |
libqt4-qt3support=4:4.7.4-0ubuntu8 \ | |
libqt4-script=4:4.7.4-0ubuntu8 \ | |
libqt4-scripttools=4:4.7.4-0ubuntu8 \ | |
libqt4-sql=4:4.7.4-0ubuntu8 \ | |
libqt4-svg=4:4.7.4-0ubuntu8 \ | |
libqt4-test=4:4.7.4-0ubuntu8 \ | |
libqt4-xml=4:4.7.4-0ubuntu8 \ | |
libqt4-xmlpatterns=4:4.7.4-0ubuntu8 \ | |
libqtcore4=4:4.7.4-0ubuntu8 \ | |
libqtgui4=4:4.7.4-0ubuntu8 \ | |
libqt4-opengl-dev=4:4.7.4-0ubuntu8 \ | |
qdbus=4:4.7.4-0ubuntu8 \ | |
qt4-linguist-tools=4:4.7.4-0ubuntu8 \ | |
qt4-qmake=4:4.7.4-0ubuntu8 \ | |
libqt4-opengl=4:4.7.4-0ubuntu8 \ | |
libqtwebkit-dev=2.2~2011week36-0ubuntu1 \ | |
libqtwebkit4=2.2~2011week36-0ubuntu1 | |
echo libqt4-dev hold | dpkg --set-selections | |
echo libqt4-dbus hold | dpkg --set-selections | |
echo libqt4-declarative hold | dpkg --set-selections | |
echo libqt4-designer hold | dpkg --set-selections | |
echo libqt4-help hold | dpkg --set-selections | |
echo libqt4-network hold | dpkg --set-selections | |
echo libqt4-qt3support hold | dpkg --set-selections | |
echo libqt4-script hold | dpkg --set-selections | |
echo libqt4-scripttools hold | dpkg --set-selections | |
echo libqt4-sql hold | dpkg --set-selections | |
echo libqt4-svg hold | dpkg --set-selections | |
echo libqt4-test hold | dpkg --set-selections | |
echo libqt4-xml hold | dpkg --set-selections | |
echo libqt4-xmlpatterns hold | dpkg --set-selections | |
echo libqtcore4 hold | dpkg --set-selections | |
echo libqtgui4 hold | dpkg --set-selections | |
echo libqt4-opengl-dev hold | dpkg --set-selections | |
echo qdbus hold | dpkg --set-selections | |
echo qt4-linguist-tools hold | dpkg --set-selections | |
echo qt4-qmake hold | dpkg --set-selections | |
echo libqt4-opengl hold | dpkg --set-selections | |
echo libqtwebkit-dev hold | dpkg --set-selections | |
echo libqtwebkit4 hold | dpkg --set-selections | |
apt-get -y upgrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, this was a life-saver! Although I had to use the
--force-yes
option (at least the second time, after I accidentally undid it.)