after I installed the language packages from 'unity-tweak-tool' and some simple programs (CopyQ, and similar). lots of problem was occured.
after I closed the unity-tweak-tool. I saw the 'unity-tweak-tool' not showed in the applications list.
I tried to reinstall 'unity-tweak-tool'. but it does not install. and get the error E: Unable to correct problems, you have held broken packages.
What I tried
-
I tried to remove it
sudo apt-get remove unity-tweak-tool sudo apt purge unity-tweak-tool sudo apt autoremove sudo apt update sudo apt -f install
try to install it by aptitude
sudo aptitude install unity-tweak-tool
–
sudo apt-get install --fix-broken
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get -f install
-
purge the last installation. (learned from: https://ubuntu-mate.community/t/cant-install-unity-tweak-tool-not-working/7090 )
sudo apt purge libqgsttools-p1 qml-module-qtquick-privatewidgets khelpcenter libkf5attica5 libqt5clucene5 libqt5svg5 qml-module-qtquick-window2 libqt5test5 qml-module-qtwebkit libkf5i18n-data qml-module-qtquick2 libqt5help5 qml-module-qtquick-controls libqt5multimedia5 libkf5declarative5 qtwayland5 libqt5dbus5 python3-pyqt5 libqt5sql5-sqlite qml-module-qtquick-xmllistmodel qml-module-qtquick-layouts libqt5widgets5 qml-module-qttest libqt5waylandclient5 qml-module-qtquick-dialogs kde-style-qtcurve-qt5 qmlscene libqt5xml5 libqt5quicktest5 libqt5printsupport5 libqt5qml5 libqt5designercomponents5 frameworkintegration libqt5gui5 libqt5multimedia5-plugins libqt5quickwidgets5 libqt5x11extras5 libkf5declarative-data libqt5webkit5 libqt5script5 libqt5core5a libkf5iconthemes-data libqt5opengl5 libqt5xmlpatterns5 libkf5iconthemes5 qttools5-dev-tools libqt5network5 libqt5designer5 libqt5positioning5 qtdeclarative5-dev-tools libkf5kiocore5 libqt5quick5 libqt5sql5 libkf5i18n5 libqt5sql5-mysql
-
after this, some of application was damaged. (VLC, CopyQ, Glipper , …)
-
I tried to reinstall them. but noting work. the same error was occured.
for example for VLCsudo apt install vlc Reading package lists... Done Building dependency tree Reading state information... Done 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 have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: vlc : Depends: vlc-nox (= 2.2.2-5) but 2.2.2-5ubuntu0.16.04.4 is to be installed Depends: libgles1-mesa (>= 7.8.1) but it is not going to be installed or libgles1 Recommends: vlc-plugin-notify (= 2.2.2-5) but it is not going to be installed Recommends: vlc-plugin-samba (= 2.2.2-5) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
-
After rebooting the system. "Glipper" was auto-strated. but it
doesnot showed in the application list. -
also I tried "synaptic" (resulte for VLC is:)
synaptic VLC Installation Error
-
also tried to grep held programs. but nothing showed.
dpkg --get-selections | grep hold
is there any solution?
Best Answer
My problem was fixed. at least for "VLC" and "unity-tweak-tool" programs.
But can not fixed for some programs like "Foxit Reader PDF". since its installation is manually. ("Foxit reader" crashed and closed when highlighting text or doing any comment).
The problem was "I did not use
aptitude
command correctly."the detail is:
first run this in terminal (notice: you may need to install "aptitude" package
sudo apt-get install aptitude
)after a while it asked:
answered to it by
n
(No)then it asked:
answer to it by
y
(yes)then asked:
answer
y
again.after this, problem was fixed and the VLC was installed correctly.
I hope, This be helpful for others, too.
Thanks for you attention