LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-15-2017, 07:14 AM   #1
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Rep: Reputation: Disabled
An application has unexpectedly disappeared.


Linux mint 17.2
I have been trying (& eventually succeeding) to install WordPress. Initially I installed LAMP but then uninstalled it & installed XAMPP.

Today I came to use QGIS, one of my key applications & it has disappeared - from my panel and the Apps menu.

I suspect that the command I used
Code:
for pkg in `dpkg -l *apache* *mysql* phpmyadmin | grep ^ii | awk '{ print $2 }'`; do sudo apt-get -y purge --auto-remove $pkg; done;
(from here http://www.upubuntu.com/2011/09/how-...che-mysql.html)

has uninstalled it somehow?

In my dpkg log there are entries like this:
Code:
2017-03-14 11:51:43 status installed qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 remove qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1 <none>
2017-03-14 11:51:43 status half-configured qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 status half-installed qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 status config-files qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 status config-files qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 status config-files qgis-plugin-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 status not-installed qgis-plugin-grass:amd64 <none>
2017-03-14 11:51:43 status installed qgis-provider-grass:amd64 2.14.3+dfsg-2~trusty1
2017-03-14 11:51:43 remove qgis-provider-grass:amd64 2.14.3+dfsg-2~trusty1 <none>
Is that evidence that it has been uninstalled? Is there a way of reversing this, as reinstallation of the whole QGIS suite of tools so they all talk to each other, is a royal pain.
Thanks

Last edited by mogmog; 03-15-2017 at 07:18 AM. Reason: clarity
 
Old 03-15-2017, 07:28 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916
Check your apt log out at /var/log/apt/history.log

Please paste the portion of the log that resulted from the command that you issued.
 
Old 03-15-2017, 07:34 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916
I should add that I would advise against running such scripts in the future unless you know exactly what they are going to do. The person who wrote that script should have taken into consideration that additional installed packages might have "apache" and "mysql" somewhere in their names.

A good way of checking what an apt-related command will do is to run it in simulate mode by placing the -s option before the commands e.g. apt-get -sy purge --auto-remove $pkg in the command above.
 
Old 03-15-2017, 08:37 AM   #4
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Original Poster
Rep: Reputation: Disabled
Log

Quote:
Originally Posted by hydrurga View Post
Check your apt log out at /var/log/apt/history.log

Please paste the portion of the log that resulted from the command that you issued.
Thanks - I searched for auto-remove: all the entries are together, so I presume this is the section you mean?
Oddly, I see a Kexi entry, but this still works (at the level I use it). And no QGIS/GRASS/SAGA entries.

Code:
Start-Date: 2017-03-14  11:45:16
Commandline: apt-get -y purge --auto-remove akonadi-backend-mysql
Purge: libkimap4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libqupzilla1:amd64 (1.6.0-1), libakonadi-kcal4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libmailtransport4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), akonadi-backend-mysql:amd64 (1.12.91-0ubuntu1), libkpimtextedit4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), kdepimlibs-kio-plugins:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libsphinxbase1:amd64 (0.8-0ubuntu10), akonadi-server:amd64 (1.12.91-0ubuntu1), friends:amd64 (0.2.0+14.04.20140217.1-0ubuntu1), libakonadi-notes4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libmicroblog4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), simon-data:amd64 (0.4.1-0ubuntu3), account-plugin-instagram:amd64 (0.11+14.04.20140409.1-0ubuntu2), libkolabxml1:amd64 (1.0.1-0ubuntu3), libaccount-plugin-generic-oauth:amd64 (0.11+14.04.20140409.1-0ubuntu2), libkmbox4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), friends-dispatcher:amd64 (0.2.0+14.04.20140217.1-0ubuntu1), libakonadi-socialutils4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libkholidays4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libaccount-plugin-1.0-0:amd64 (0.1.7~+14.04.20140211.2-0ubuntu4), libakonadi-kmime4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libkcal4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libakonadi-calendar4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libsignon-qt1:amd64 (8.56+14.04.20140307-0ubuntu2), simon:amd64 (0.4.1-0ubuntu3), libkcalutils4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libqaccessibilityclient0:amd64 (0+git20140203-0ubuntu2), libkfbapi1:amd64 (1.0-0ubuntu4), libkpimidentities4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), unity-asset-pool:amd64 (0.8.24daily13.06.10-0ubuntu1), libkolab0:amd64 (0.5.2-0ubuntu1), libkalarmcal2:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libkgapi2-2:amd64 (2.2.0-0ubuntu1), libakonadi-kabc4:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1), libpocketsphinx1:amd64 (0.8.0+real-0ubuntu6), libaccounts-qt1:amd64 (1.11+14.04.20140410.1-0ubuntu1), kdepim-runtime:amd64 (4.14.2-0ubuntu1~ubuntu14.04~ppa1)
End-Date: 2017-03-14  11:45:38

Start-Date: 2017-03-14  11:45:41
Commandline: apt-get -y purge --auto-remove apache2
Install: php5-cgi:amd64 (5.5.9+dfsg-1ubuntu4.21, automatic)
Purge: apache2-mpm-prefork:amd64 (2.4.7-1ubuntu4.13), libapache2-mod-php5:amd64 (5.5.9+dfsg-1ubuntu4.21), libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1), apache2:amd64 (2.4.7-1ubuntu4.13)
End-Date: 2017-03-14  11:45:47

Start-Date: 2017-03-14  11:45:48
Commandline: apt-get -y purge --auto-remove apache2-bin
Purge: apache2-bin:amd64 (2.4.7-1ubuntu4.13)
End-Date: 2017-03-14  11:45:48

Start-Date: 2017-03-14  11:45:49
Commandline: apt-get -y purge --auto-remove apache2-data
Purge: apache2-data:amd64 (2.4.7-1ubuntu4.13)
End-Date: 2017-03-14  11:45:50

Start-Date: 2017-03-14  11:45:51
Commandline: apt-get -y purge --auto-remove kexi-mysql-driver
Purge: kexi-mysql-driver:amd64 (2.8.5-0ubuntu6~ubuntu14.04~ppa1)
End-Date: 2017-03-14  11:45:52

Start-Date: 2017-03-14  11:45:54
Commandline: apt-get -y purge --auto-remove libapache-pom-java
Purge: libcommons-logging-java:amd64 (1.1.3-1), libfop-java:amd64 (1.1.dfsg-2ubuntu1), libcommons-parent-java:amd64 (22-2build1), libjortho-freeplane-java:amd64 (1.2.23+dfsg1-1), freeplane:amd64 (1.2.23+dfsg1-1), libxmlgraphics-commons-java:amd64 (1.5-4ubuntu1), junit4:amd64 (4.11-2), libgnu-regexp-java:amd64 (1.1.4-4), libjgoodies-forms-java:amd64 (1.6.0-4), libasm3-java:amd64 (3.3.2-2), libhamcrest-java:amd64 (1.3-4), libxstream-java:amd64 (1.4.7-1), java-wrappers:amd64 (0.1.27), libcommons-lang-java:amd64 (2.6-3ubuntu2), libcommons-io-java:amd64 (2.4-2), libcommons-cli-java:amd64 (1.2-3ubuntu1), libgetopt-java:amd64 (1.0.14+dfsg-2), libjsyntaxpane-java:amd64 (0.9.6~r156-4), libjline-java:amd64 (1.0-2), libknopflerfish-osgi-framework-java:amd64 (2.3.3-3), libjgoodies-common-java:amd64 (1.4.0-2), librhino-java:amd64 (1.7R4-2), libavalon-framework-java:amd64 (4.2.0-9), libapache-pom-java:amd64 (10-2build1), antlr:amd64 (2.7.7+dfsg-5), ivy:amd64 (2.3.0-3), libservlet2.5-java:amd64 (6.0.39-1), libregexp-java:amd64 (1.5-3build1), javahelp2:amd64 (2.0.05.ds1-6), libjansi-java:amd64 (1.4-3), libjlatexmath-java:amd64 (1.0.3-1), libxpp3-java:amd64 (1.1.4c-2build1), groovy:amd64 (2.0.0~beta2+isreally1.8.6-0ubuntu1), libmockobjects-java:amd64 (0.09-5), libbsf-java:amd64 (2.4.0-5build1), libbatik-java:amd64 (1.7.ubuntu-8ubuntu2.14.04.1), libantlr-java:amd64 (2.7.7+dfsg-5), libjansi-native-java:amd64 (1.0-4), simplyhtml:amd64 (0.16.07-1), libhawtjni-runtime-java:amd64 (1.0~+git0c502e20c4-3)
End-Date: 2017-03-14  11:46:14

Start-Date: 2017-03-14  11:46:15
Commandline: apt-get -y purge --auto-remove libapache2-mod-auth-mysql
Purge: libapache2-mod-auth-mysql:amd64 (4.3.9-13.1ubuntu3)
End-Date: 2017-03-14  11:46:16

Start-Date: 2017-03-14  11:46:17
Commandline: apt-get -y purge --auto-remove libdbd-mysql-perl
Purge: mysql-server-5.5:amd64 (5.5.54-0ubuntu0.14.04.1), mysql-client:amd64 (5.5.54-0ubuntu0.14.04.1), mysql-client-5.5:amd64 (5.5.54-0ubuntu0.14.04.1), mysql-server:amd64 (5.5.54-0ubuntu0.14.04.1), libdbd-mysql-perl:amd64 (4.025-1ubuntu0.1)
End-Date: 2017-03-14  11:46:21

Start-Date: 2017-03-14  11:46:23
Commandline: apt-get -y purge --auto-remove libmysqlclient18:amd64
Purge: grass:amd64 (7.0.5-1~trusty1), qgis-providers:amd64 (2.14.3+dfsg-2~trusty1), libjs-jquery-mousewheel:amd64 (8-2), libqgis-analysis2.14.3:amd64 (2.14.3+dfsg-2~trusty1), libqt4-sql-mysql:amd64 (4.8.5+git192-g085f851+dfsg-2ubuntu4.1), libjs-jquery-metadata:amd64 (8-2), libqgis-networkanalysis2.14.3:amd64 (2.14.3+dfsg-2~trusty1), php5-mysql:amd64 (5.5.9+dfsg-1ubuntu4.21), libjs-jquery-cookie:amd64 (8-2), qgis-provider-grass:amd64 (2.14.3+dfsg-2~trusty1), python-qgis:amd64 (2.14.3+dfsg-2~trusty1), libqgis-gui2.14.3:amd64 (2.14.3+dfsg-2~trusty1), libjs-jquery-event-drag:amd64 (8-2), dbconfig-common:amd64 (1.8.47+nmu1), saga:amd64 (2.2.7+dfsg-1~trusty0), qgis-plugin-grass:amd64 (2.14.3+dfsg-2~trusty1), libqgis-app2.14.3:amd64 (2.14.3+dfsg-2~trusty1), php5-mcrypt:amd64 (5.4.6-0ubuntu5), libqgis-server2.14.3:amd64 (2.14.3+dfsg-2~trusty1), qgis:amd64 (2.14.3+dfsg-2~trusty1), libmcrypt4:amd64 (2.5.8-3.1ubuntu1), gdal-bin:amd64 (2.1.0+dfsg-1~trusty2), phpmyadmin:amd64 (4.0.10-1), liblas3:amd64 (1.8.0-7build2~trusty0), python-qgis-common:amd64 (2.14.3+dfsg-2~trusty1), libjs-jquery-ui:amd64 (1.10.1+dfsg-1), libqwt6:amd64 (6.0.0-1.2), php5-cgi:amd64 (5.5.9+dfsg-1ubuntu4.21), libgdal20:amd64 (2.1.0+dfsg-1~trusty2), libqgis-customwidgets:amd64 (2.14.3+dfsg-2~trusty1), libmysqlclient18:amd64 (5.5.54-0ubuntu0.14.04.1), grass-gui:amd64 (7.0.5-1~trusty1), libqgispython2.14.3:amd64 (2.14.3+dfsg-2~trusty1), libjs-jquery-tablesorter:amd64 (8-2), php-gettext:amd64 (1.0.11-1), libjs-codemirror:amd64 (2.23-1), python-gdal:amd64 (2.1.0+dfsg-1~trusty2), liblas-c3:amd64 (1.8.0-7build2~trusty0), libqgisgrass7-2.14.3:amd64 (2.14.3+dfsg-2~trusty1), grass-core:amd64 (7.0.5-1~trusty1), libqgis-core2.14.3:amd64 (2.14.3+dfsg-2~trusty1)
End-Date: 2017-03-14  11:52:05

Start-Date: 2017-03-14  11:52:07
Commandline: apt-get -y purge --auto-remove libqt4-sql-mysql:amd64
Purge: libkml0:amd64 (1.3.0~r864-2), python-opengl:amd64 (3.0.2-1), libqhull6:amd64 (2012.1-4), libhdf4-0-alt:amd64 (4.2r10-0ubuntu1), libgeotiff2:amd64 (1.4.0-1ubuntu2), libnetcdfc7:amd64 (4.1.3-7ubuntu2), libopenjp2-7:amd64 (2.1.0-2.1otb1~trusty1), libsvm3:amd64 (3.12-1), libepsilon1:amd64 (0.9.2-2), libogdi3.2:amd64 (3.2.0~beta2-7ubuntu1), libhpdf-2.2.1:amd64 (2.2.1-1ubuntu2), libdap11:amd64 (3.12.0-1), libdapclient3:amd64 (3.12.0-1), libarpack2:amd64 (3.1.5-2), libarmadillo4:amd64 (4.200.0+dfsg-1), libdxflib-2.5.0.0:amd64 (2.5.0.0-2), libhdf5-7:amd64 (1.8.11-5ubuntu7), freeglut3:amd64 (2.8.1-1), liburiparser1:amd64 (0.7.5-1ubuntu2), libcrypto++9:amd64 (5.6.1-6+deb8u1build0.14.04.1), libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1)
End-Date: 2017-03-14  11:52:13

Start-Date: 2017-03-14  11:52:15
Commandline: apt-get -y purge --auto-remove mysql-client-core-5.5
Purge: mysql-client-core-5.5:amd64 (5.5.54-0ubuntu0.14.04.1)
End-Date: 2017-03-14  11:52:16

Start-Date: 2017-03-14  11:52:17
Commandline: apt-get -y purge --auto-remove mysql-common
Purge: mysql-common:amd64 (5.5.54-0ubuntu0.14.04.1)
End-Date: 2017-03-14  11:52:18

Start-Date: 2017-03-14  11:52:20
Commandline: apt-get -y purge --auto-remove mysql-server-core-5.5
Purge: mysql-server-core-5.5:amd64 (5.5.54-0ubuntu0.14.04.1)
End-Date: 2017-03-14  11:52:21

Start-Date: 2017-03-14  11:52:22
Commandline: apt-get -y purge --auto-remove mysql-workbench-community
Purge: mysql-workbench-community:amd64 (6.2.5-1ubu1404), libctemplate2:amd64 (2.2-4ubuntu3), libpcrecpp0:amd64 (8.31-2ubuntu2.3)
End-Date: 2017-03-14  11:52:34
Your help is appreciated.
Cheers.
 
Old 03-15-2017, 09:05 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916
Thanks. We're working off the assumption that it was the effects of the command that you ran that purged a package or packages it shouldn't have, and it is that which has rendered QGIS inoperable. Of course that assumption could be wrong.

There are two ways you could approach this. Firstly you could reinstall QGIS, which should pull in any dependencies it requires. Your personal config in home will remain the same but any system config may not, so you may have to reconfigure QGIS. However, it is worth considering that one of more of the packages purged by the original command may still affect the system otherwise in the future due to their lack of presence.

Alternatively you could reinstall every package that was removed by the command. However this could well conflict with XAMPP, so you may have to uninstall XAMPP before you do that. In effect you would be, by examining the APT history log and selecting commands associated with the LAMP stack, rolling back to the situation you were in before. Then, once you have reached that situation, you would see what LAMP components you have installed, remove with care what you don't need, and then install XAMPP. It should be noted that you may well however be able to install XAMPP over LAMP with no problems - I don't know, but a web search should help you out on that.

The third option is to roll back your system to the backup that you took of it before you ran the initial command. That's of course if you are making backups of your system.
 
Old 03-15-2017, 09:11 AM   #6
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916Reputation: 2916
Just a quick further thought. Have a look at your APT history log to see if you can find out exactly which packages and dependencies were installed when you initially installed LAMP. That will allow you to determine which packages were subsequently purged which shouldn't have been.
 
Old 03-15-2017, 12:45 PM   #7
mogmog
Member
 
Registered: Jun 2012
Location: UK
Posts: 80

Original Poster
Rep: Reputation: Disabled
My APT history (from within the APT application) shows almost nothing happening this month.

Just trying to (re)install it now, but it's going as badly or worse than I thought it would.
 
  


Reply

Tags
linux, uninstall


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Application Icons disappeared! McBride1944 Linux - Newbie 4 05-26-2011 11:59 AM
disappeared application windows corky383 Linux - Desktop 1 08-15-2010 08:06 PM
The Application Nautilus has Unexpectedly Quit donanap Linux - Newbie 1 10-23-2008 11:44 PM
Internet application disappeared from All Applications Lola Kews SUSE / openSUSE 4 06-25-2008 12:00 AM
The Application "nautilus" has quit unexpectedly. Ace2005 Fedora 5 06-24-2005 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration