Removing and reinstalling all KDE packages
I got caught in a broken install during a dist-upgrade in sid (I knew the risks, no complaints). Is it possible to remove (from the CTRL-ALT-F1 login terminal) all KDE related packages and then reinstall KDE? (I suspect the problem is there.) I include my output in case it's useful to describe the situation. *sudo apt-check* Generazione albero delle dipendenze... Lettura informazioni sullo stato... È utile eseguire "apt --fix-broken install" per correggere ciò. I seguenti pacchetti hanno dipendenze non soddisfatte: accountwizard : Dipende: libkf5pimcommon5-19.08 Dipende: libkf5pimcommon5abi2 (>= 4:19.08.3) ma non è installato akonadiconsole : Dipende: libkf5akonadisearchcore5 (>= 4:19.08.3) ma la versione 4:17.12.3-1 è installata Dipende: libkf5akonadisearchcore5-19.08 Dipende: libkf5akonadisearchxapian5 (>= 4:19.08.3) ma la versione 4:17.12.3-1 è installata Dipende: libkf5akonadisearchxapian5-19.08 Dipende: libkf5akonadixml5 (>= 4:19.08.3) ma la versione 4:17.12.3-2+b1 è installata Dipende: libkf5akonadixml5-19.08 Dipende: libkf5messageviewer5-19.08 Dipende: libkf5messageviewer5abi1 (>= 4:19.08.3) ma non è installato akregator : Dipende: libkf5messageviewer5-19.08 Dipende: libkf5messageviewer5abi1 (>= 4:19.08.3) ma non è installato Dipende: libkf5mimetreeparser5-19.08 Dipende: libkf5mimetreeparser5abi1 (>= 4:19.08.3) ma non è installato Dipende: libkf5pimcommon5-19.08 Dipende: libkf5pimcommon5abi2 (>= 4:19.08.3) ma non è installato Dipende: libkf5syndication5abi1 (>= 1:5.60.0~) ma non è installato Dipende: libkf5webengineviewer5-19.08 Dipende: libkf5webengineviewer5abi1 (>= 4:19.08.3) ma non è installato kalarm : Dipende: libkf5alarmcalendar5-19.08 Dipende: libkf5alarmcalendar5abi1 (>= 4:19.08.3) ma non è installato Dipende: libkf5pimcommon5-19.08 Dipende: libkf5pimcommon5abi2 (>= 4:19.08.3) ma non è installato kdepim-runtime : Dipende: libsasl2-modules-kdexoauth2 ma non è installato Dipende: libkf5alarmcalendar5-19.08 Dipende: libkf5alarmcalendar5abi1 (>= 4:19.08.3) ma non è installato Dipende: libkpimgapicore5-19.08 Dipende: libkpimgapicore5abi1 (>= 19.08.3) ma non è installato Dipende: libkpimkdav5-19.08 Dipende: libkpimkdav5abi2 (>= 19.08.3) ma non è installato Dipende: libqt5networkauth5 (>= 5.11.2) ma non è installato kdiff3 : Dipende: kde-runtime (> 4:4.10) ma non è installabile Dipende: libkdecore5 (>= 4:4.4.4) ma non è installabile Dipende: libkdeui5 (>= 4:4.4.4) ma non è installabile Dipende: libkio5 (>= 4:4.5.85) ma non è installabile Dipende: libkparts4 (>= 4:4.5.85) ma non è installabile Dipende: libqtcore4 (>= 4:4.7.0~beta1) ma non è installabile kgpg : Dipende: libkf5akonadicore5abi1 (>= 4:17.12.1) ma non è installabile knotes : Dipende: libkf5pimcommon5-19.08 Dipende: libkf5pimcommon5abi2 (>= 4:19.08.3) ma non è installato Dipende: libkf5pimcommonakonadi5-19.08 Dipende: libkf5pimcommonakonadi5abi1 (>= 4:19.08.3) ma non è installato korganizer : Dipende: libkf5eventviews5-19.08 Dipende: libkf5eventviews5abi1 (>= 4:19.08.3) ma non è installato Dipende: libkf5pimcommon5-19.08 Dipende: libkf5pimcommon5abi2 (>= 4:19.08.3) ma non è installato Dipende: libkf5pimcommonakonadi5-19.08 Dipende: libkf5pimcommonakonadi5abi1 (>= 4:19.08.3) ma non è installato libkf5akonadisearch-bin : Dipende: libkf5akonadicore5abi1 (>= 4:17.12.1) ma non è installabile libkf5akonadisearch-plugins : Dipende: libkf5akonadicore5abi1 (>= 4:17.12.1) ma non è installabile libkf5akonadixml5 : Dipende: libkf5akonadicore5abi1 (= 4:17.12.3-2+b1) ma non è installabile libkf5calendarsupport5abi1 : Dipende: libkf5pimcommon5-19.08 Dipende: libkf5pimcommon5abi2 (>= 4:19.08.3) ma non è installato libkf5imap5 : Dipende: libkf5imap-data ma non è installato libkf5incidenceeditor5abi1 : Dipende: libkf5incidenceeditor-data (= 19.08.3-1) ma la versione 17.12.3-1 è installata Dipende: libkf5eventviews5-19.08 Dipende: libkf5eventviews5abi1 (>= 4:19.08.3) ma non è installato libkf5kaddressbookgrantlee5 : Dipende: kf5-kdepim-apps-libs-data (= 4:19.08.3-1) ma la versione 4:17.12.3-1 è installata libkf5kaddressbookimportexport5 : Dipende: libkf5akonadicore5abi1 (>= 4:17.12.1) ma non è installabile Dipende: libkf5pimcommon5abi1 (>= 4:17.12.2) ma non è installabile libkf5kdepimdbusinterfaces5 : Dipende: kf5-kdepim-apps-libs-data (= 4:19.08.3-1) ma la versione 4:17.12.3-1 è installata libkf5ksieveui5 : Dipende: libkf5pimcomm
Re: Removing and reinstalling all KDE packages
On Mon, May 18, 2020 at 05:18:54PM -0700, Marco Paolieri wrote: > dpkg: errore nell'elaborare l'archivio > /var/cache/apt/archives/libkf5ldap-data_19.08.3-1_all.deb (--unpack): > tentata sovrascrittura di "/usr/share/locale/ar/LC_MESSAGES/libkldap5.mo" > presente anche nel pacchetto libkf5ldap5:amd64 17.12.3-1 Remove libkf5ldap5 and try again. Also, when you are asking for help, consider running your commands with LANG=C to privde logs in English. -- WBR, wRAR signature.asc Description: PGP signature
Re: Removing and reinstalling all KDE packages
Thank you very much for the suggestion... What I get is: $ LANG=C sudo apt-get remove libkf5ldap5 Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: accountwizard : Depends: libkf5pimcommon5-19.08 Depends: libkf5pimcommon5abi2 (>= 4:19.08.3) but it is not going to be installed akonadiconsole : Depends: libkf5akonadisearchcore5 (>= 4:19.08.3) but 4:17.12.3-1 is to be installed ... E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). $ LANG=C sudo apt --fix-broken install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following additional packages will be installed: kaddressbook kde-standard kdepim-addons kdepim-themeeditors kdiff3 kf5-kdepim-apps-libs-data kgpg kmail libkf5akonadisearch-bin libkf5akonadisearch-plugins libkf5akonadisearchcore5 libkf5akonadisearchxapian5 libkf5akonadixml5 libkf5alarmcalendar-data libkf5alarmcalendar5abi1 libkf5eventviews5abi1 libkf5followupreminder5 libkf5gravatar5abi2 libkf5imap-data libkf5incidenceeditor-data libkf5kaddressbookimportexport5 libkf5ldap-data libkf5mailcommon-data libkf5mailcommon5abi2 libkf5mailimporter5 libkf5mailimporterakonadi5 libkf5messagecomposer5abi1 libkf5messagecore5abi1 libkf5messagelist5abi1 libkf5messageviewer5abi1 libkf5mimetreeparser5abi1 libkf5pimcommon-data libkf5pimcommon5abi2 libkf5pimcommonakonadi5abi1 libkf5sendlater5 libkf5syndication5abi1 libkf5templateparser5 libkf5tnef5 libkf5webengineviewer5abi1 libkpimgapi-data libkpimgapicore5abi1 libkpimimportwizard5 libkpimitinerary-data libkpimitinerary5 libkpimkdav-data libkpimkdav5abi2 libkpimpkpass5 libkpimsmtp5abi1 libphonenumber7 libprotobuf22 libqt5networkauth5 libreoffice-kde5 libreoffice-kf5 libreoffice-plasma libreoffice-qt5 libsasl2-modules-kdexoauth2 mbox-importer mysql-server-5.7 pim-data-exporter pim-sieve-editor qtgstreamer-plugins-qt5 task-desktop task-italian task-italian-desktop task-italian-kde-desktop task-kde-desktop task-ssh-server tasksel tasksel-data Suggested packages: skanlite kopete clamav procmail spamassassin | bogofilter | spambayes | bsfilter | crm114 tinyca Recommended packages: fonts-symbola kde-l10n-it orca libreoffice libreoffice-help-en-us The following packages will be REMOVED: libkfilemetadata4 libkjsapi4 libkjsembed4 libkldap4 libkmime4 libknewstuff2-4 libknotifyconfig4 libkntlm4 libkpimgapicore5 libkpimkdav5abi1 libkpty4 libkresources4 libkrosscore4 libnepomuk4 libnepomukquery4a libntrack-qt4-1 libphonon4 libpolkit-qt-1-1 libqca2 libqca2-plugins libqimageblitz4 libqjson0 libqt4-dbus libqt4-declarative libqt4-designer libqt4-network libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql libqt4-sql-sqlite libqt4-svg libqt4-xml libqt4-xmlpatterns libqtdbus4 libqtgui4 libqtwebkit4 libsolid4 libsoprano4 libthreadweaver4 phonon phonon-backend-vlc qdbus qt-at-spi soprano-daemon The following NEW packages will be installed: kaddressbook kde-standard kdepim-addons kdepim-themeeditors kmail libkf5alarmcalendar-data libkf5alarmcalendar5abi1 libkf5eventviews5abi1 libkf5followupreminder5 libkf5gravatar5abi2 libkf5imap-data libkf5ldap-data libkf5mailcommon5abi2 libkf5messagecomposer5abi1 libkf5messagecore5abi1 libkf5messagelist5abi1 libkf5messageviewer5abi1 libkf5mimetreeparser5abi1 libkf5pimcommon5abi2 libkf5pimcommonakonadi5abi1 libkf5sendlater5 libkf5syndication5abi1 libkf5templateparser5 libkf5tnef5 libkf5webengineviewer5abi1 libkpimgapicore5abi1 libkpimimportwizard5 libkpimitinerary-data libkpimitinerary5 libkpimkdav5abi2 libkpimpkpass5 libkpimsmtp5abi1 libphonenumber7 libprotobuf22 libqt5networkauth5 libreoffice-kde5 libreoffice-kf5 libreoffice-plasma libreoffice-qt5 libsasl2-modules-kdexoauth2 mbox-importer pim-data-exporter qtgstreamer-plugins-qt5 The following packages will be upgraded: kdiff3 kf5-kdepim-apps-libs-data kgpg libkf5akonadisearch-bin libkf5akonadisearch-plugins libkf5akonadisearchcore5 libkf5akonadisearchxapian5 libkf5akonadixml5 libkf5incidenceeditor-data libkf5kaddressbookimportexport5 libkf5mailcommon-data libkf5mailimporter5 libkf5mailimporterakonadi5 libkf5pimcommon-data libkpimgapi-data libkpimkdav-data mysql-server-5.7 pim-sieve-editor task-desktop task-italian task-italian-desktop task-italian-kde-desktop task-kde-desktop task-ssh-server tasksel tasksel-data 26 upgraded, 43 newly installed, 45 to remove and 367 not upgraded. 118 not fully installed or removed. Need to get 0 B/22.2 MB of archives. After this operation, 40.8 MB disk space will be freed. Reading changelogs... Done Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... 492548 files and directories currently installed.) Preparing to unpack .../libkf5ldap-data_19.08.3-1_all.deb ... Unpacking libkf5ldap-data (19.08.3-1) ... dpkg: error
Re: Removing and reinstalling all KDE packages
Is there a different way I should remove the libkf5ldap5 package? On Mon, May 18, 2020 at 11:03 PM Marco Paolieri wrote: > Thank you very much for the suggestion... What I get is: > > $ LANG=C sudo apt-get remove libkf5ldap5 > Reading package lists... Done > Building dependency tree > Reading state information... Done > You might want to run 'apt --fix-broken install' to correct these. > The following packages have unmet dependencies: > accountwizard : Depends: libkf5pimcommon5-19.08 > Depends: libkf5pimcommon5abi2 (>= 4:19.08.3) but it is not > going to be installed > akonadiconsole : Depends: libkf5akonadisearchcore5 (>= 4:19.08.3) but > 4:17.12.3-1 is to be installed > ... > E: Unmet dependencies. Try 'apt --fix-broken install' with no packages > (or specify a solution). > > $ LANG=C sudo apt --fix-broken install > Reading package lists... Done > Building dependency tree > Reading state information... Done > Correcting dependencies... Done > The following additional packages will be installed: > kaddressbook kde-standard kdepim-addons kdepim-themeeditors kdiff3 > kf5-kdepim-apps-libs-data kgpg kmail libkf5akonadisearch-bin > libkf5akonadisearch-plugins libkf5akonadisearchcore5 > libkf5akonadisearchxapian5 libkf5akonadixml5 libkf5alarmcalendar-data > libkf5alarmcalendar5abi1 libkf5eventviews5abi1 libkf5followupreminder5 > libkf5gravatar5abi2 libkf5imap-data > libkf5incidenceeditor-data libkf5kaddressbookimportexport5 > libkf5ldap-data libkf5mailcommon-data libkf5mailcommon5abi2 > libkf5mailimporter5 libkf5mailimporterakonadi5 > libkf5messagecomposer5abi1 libkf5messagecore5abi1 libkf5messagelist5abi1 > libkf5messageviewer5abi1 libkf5mimetreeparser5abi1 libkf5pimcommon-data > libkf5pimcommon5abi2 > libkf5pimcommonakonadi5abi1 libkf5sendlater5 libkf5syndication5abi1 > libkf5templateparser5 libkf5tnef5 libkf5webengineviewer5abi1 > libkpimgapi-data libkpimgapicore5abi1 > libkpimimportwizard5 libkpimitinerary-data libkpimitinerary5 > libkpimkdav-data libkpimkdav5abi2 libkpimpkpass5 libkpimsmtp5abi1 > libphonenumber7 libprotobuf22 libqt5networkauth5 > libreoffice-kde5 libreoffice-kf5 libreoffice-plasma libreoffice-qt5 > libsasl2-modules-kdexoauth2 mbox-importer mysql-server-5.7 > pim-data-exporter pim-sieve-editor qtgstreamer-plugins-qt5 > task-desktop task-italian task-italian-desktop task-italian-kde-desktop > task-kde-desktop task-ssh-server tasksel tasksel-data > Suggested packages: > skanlite kopete clamav procmail spamassassin | bogofilter | spambayes | > bsfilter | crm114 tinyca > Recommended packages: > fonts-symbola kde-l10n-it orca libreoffice libreoffice-help-en-us > The following packages will be REMOVED: > libkfilemetadata4 libkjsapi4 libkjsembed4 libkldap4 libkmime4 > libknewstuff2-4 libknotifyconfig4 libkntlm4 libkpimgapicore5 > libkpimkdav5abi1 libkpty4 libkresources4 libkrosscore4 > libnepomuk4 libnepomukquery4a libntrack-qt4-1 libphonon4 libpolkit-qt-1-1 > libqca2 libqca2-plugins libqimageblitz4 libqjson0 libqt4-dbus > libqt4-declarative libqt4-designer libqt4-network > libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql > libqt4-sql-sqlite libqt4-svg libqt4-xml libqt4-xmlpatterns libqtdbus4 > libqtgui4 libqtwebkit4 libsolid4 libsoprano4 > libthreadweaver4 phonon phonon-backend-vlc qdbus qt-at-spi soprano-daemon > The following NEW packages will be installed: > kaddressbook kde-standard kdepim-addons kdepim-themeeditors kmail > libkf5alarmcalendar-data libkf5alarmcalendar5abi1 libkf5eventviews5abi1 > libkf5followupreminder5 libkf5gravatar5abi2 > libkf5imap-data libkf5ldap-data libkf5mailcommon5abi2 > libkf5messagecomposer5abi1 libkf5messagecore5abi1 libkf5messagelist5abi1 > libkf5messageviewer5abi1 libkf5mimetreeparser5abi1 > libkf5pimcommon5abi2 libkf5pimcommonakonadi5abi1 libkf5sendlater5 > libkf5syndication5abi1 libkf5templateparser5 libkf5tnef5 > libkf5webengineviewer5abi1 libkpimgapicore5abi1 > libkpimimportwizard5 libkpimitinerary-data libkpimitinerary5 > libkpimkdav5abi2 libkpimpkpass5 libkpimsmtp5abi1 libphonenumber7 > libprotobuf22 libqt5networkauth5 libreoffice-kde5 > libreoffice-kf5 libreoffice-plasma libreoffice-qt5 > libsasl2-modules-kdexoauth2 mbox-importer pim-data-exporter > qtgstreamer-plugins-qt5 > The following packages will be upgraded: > kdiff3 kf5-kdepim-apps-libs-data kgpg libkf5akonadisearch-bin > libkf5akonadisearch-plugins libkf5akonadisearchcore5 > libkf5akonadisearchxapian5 libkf5akonadixml5 > libkf5incidenceeditor-data libkf5kaddressbookimportexport5 > libkf5mailcommon-data libkf5mailimporter5 libkf5mailimporterakonadi5 > libkf5pimcommon-data libkpimgapi-data libkpimkdav-data > mysql-server-5.7 pim-sieve-editor task-desktop task-italian > task-italian-desktop task-italian-kde-desktop task-kde-desktop > task-ssh-server tasksel tasksel-data > 26 upgraded, 43 newly installed, 45 to remove and 367 not upgraded. > 118 not fully installed or removed. > Need to get 0 B/22.2 MB of archives. > After this operation, 40.8 MB disk
Re: Removing and reinstalling all KDE packages
On Mon, May 18, 2020 at 11:05:02PM -0700, Marco Paolieri wrote: > Is there a different way I should remove the libkf5ldap5 package? Try dpkg -r. Though if something depends on it, and it probably does, you'll need either ask dpkg to ignore deps, or remove all deps too. > On Mon, May 18, 2020 at 11:03 PM Marco Paolieri wrote: > > > Thank you very much for the suggestion... What I get is: > > > > $ LANG=C sudo apt-get remove libkf5ldap5 > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > You might want to run 'apt --fix-broken install' to correct these. > > The following packages have unmet dependencies: > > accountwizard : Depends: libkf5pimcommon5-19.08 > > Depends: libkf5pimcommon5abi2 (>= 4:19.08.3) but it is not > > going to be installed > > akonadiconsole : Depends: libkf5akonadisearchcore5 (>= 4:19.08.3) but > > 4:17.12.3-1 is to be installed > > ... > > E: Unmet dependencies. Try 'apt --fix-broken install' with no packages > > (or specify a solution). > > > > $ LANG=C sudo apt --fix-broken install > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Correcting dependencies... Done > > The following additional packages will be installed: > > kaddressbook kde-standard kdepim-addons kdepim-themeeditors kdiff3 > > kf5-kdepim-apps-libs-data kgpg kmail libkf5akonadisearch-bin > > libkf5akonadisearch-plugins libkf5akonadisearchcore5 > > libkf5akonadisearchxapian5 libkf5akonadixml5 libkf5alarmcalendar-data > > libkf5alarmcalendar5abi1 libkf5eventviews5abi1 libkf5followupreminder5 > > libkf5gravatar5abi2 libkf5imap-data > > libkf5incidenceeditor-data libkf5kaddressbookimportexport5 > > libkf5ldap-data libkf5mailcommon-data libkf5mailcommon5abi2 > > libkf5mailimporter5 libkf5mailimporterakonadi5 > > libkf5messagecomposer5abi1 libkf5messagecore5abi1 libkf5messagelist5abi1 > > libkf5messageviewer5abi1 libkf5mimetreeparser5abi1 libkf5pimcommon-data > > libkf5pimcommon5abi2 > > libkf5pimcommonakonadi5abi1 libkf5sendlater5 libkf5syndication5abi1 > > libkf5templateparser5 libkf5tnef5 libkf5webengineviewer5abi1 > > libkpimgapi-data libkpimgapicore5abi1 > > libkpimimportwizard5 libkpimitinerary-data libkpimitinerary5 > > libkpimkdav-data libkpimkdav5abi2 libkpimpkpass5 libkpimsmtp5abi1 > > libphonenumber7 libprotobuf22 libqt5networkauth5 > > libreoffice-kde5 libreoffice-kf5 libreoffice-plasma libreoffice-qt5 > > libsasl2-modules-kdexoauth2 mbox-importer mysql-server-5.7 > > pim-data-exporter pim-sieve-editor qtgstreamer-plugins-qt5 > > task-desktop task-italian task-italian-desktop task-italian-kde-desktop > > task-kde-desktop task-ssh-server tasksel tasksel-data > > Suggested packages: > > skanlite kopete clamav procmail spamassassin | bogofilter | spambayes | > > bsfilter | crm114 tinyca > > Recommended packages: > > fonts-symbola kde-l10n-it orca libreoffice libreoffice-help-en-us > > The following packages will be REMOVED: > > libkfilemetadata4 libkjsapi4 libkjsembed4 libkldap4 libkmime4 > > libknewstuff2-4 libknotifyconfig4 libkntlm4 libkpimgapicore5 > > libkpimkdav5abi1 libkpty4 libkresources4 libkrosscore4 > > libnepomuk4 libnepomukquery4a libntrack-qt4-1 libphonon4 libpolkit-qt-1-1 > > libqca2 libqca2-plugins libqimageblitz4 libqjson0 libqt4-dbus > > libqt4-declarative libqt4-designer libqt4-network > > libqt4-opengl libqt4-qt3support libqt4-script libqt4-sql > > libqt4-sql-sqlite libqt4-svg libqt4-xml libqt4-xmlpatterns libqtdbus4 > > libqtgui4 libqtwebkit4 libsolid4 libsoprano4 > > libthreadweaver4 phonon phonon-backend-vlc qdbus qt-at-spi soprano-daemon > > The following NEW packages will be installed: > > kaddressbook kde-standard kdepim-addons kdepim-themeeditors kmail > > libkf5alarmcalendar-data libkf5alarmcalendar5abi1 libkf5eventviews5abi1 > > libkf5followupreminder5 libkf5gravatar5abi2 > > libkf5imap-data libkf5ldap-data libkf5mailcommon5abi2 > > libkf5messagecomposer5abi1 libkf5messagecore5abi1 libkf5messagelist5abi1 > > libkf5messageviewer5abi1 libkf5mimetreeparser5abi1 > > libkf5pimcommon5abi2 libkf5pimcommonakonadi5abi1 libkf5sendlater5 > > libkf5syndication5abi1 libkf5templateparser5 libkf5tnef5 > > libkf5webengineviewer5abi1 libkpimgapicore5abi1 > > libkpimimportwizard5 libkpimitinerary-data libkpimitinerary5 > > libkpimkdav5abi2 libkpimpkpass5 libkpimsmtp5abi1 libphonenumber7 > > libprotobuf22 libqt5networkauth5 libreoffice-kde5 > > libreoffice-kf5 libreoffice-plasma libreoffice-qt5 > > libsasl2-modules-kdexoauth2 mbox-importer pim-data-exporter > > qtgstreamer-plugins-qt5 > > The following packages will be upgraded: > > kdiff3 kf5-kdepim-apps-libs-data kgpg libkf5akonadisearch-bin > > libkf5akonadisearch-plugins libkf5akonadisearchcore5 > > libkf5akonadisearchxapian5 libkf5akonadixml5 > > libkf5incidenceeditor-data libkf5kaddressbookimportexport5 > > libkf5mailcommon-data libkf5mailimporter5 libkf5mailimporterakonadi5 > > libkf5pimcommon-data libkpim
Re: Removing and reinstalling all KDE packages
Thanks! I kept adding the dependencies to the command line, and this worked: $ LANG=C sudo dpkg -r libkf5ldap5 libkf5libkdepim-plugins libkf5libkdepim-plugins libkf5mailimporter5 libkf5libkdepim-plugins kontact libkf5mailimporterakonadi5 Package libkf5libkdepim-plugins:amd64 listed more than once, only processing once. dpkg: warning: ignoring request to remove kontact, only the config files of which are on the system; use --purge to remove them too (Reading database ... 492423 files and directories currently installed.) Removing libkf5mailimporterakonadi5:amd64 (4:17.12.3-1) ... Removing libkf5mailimporter5:amd64 (4:17.12.3-1) ... Removing libkf5libkdepim-plugins:amd64 (4:17.12.3-1) ... Removing libkf5ldap5:amd64 (17.12.3-1) ... Processing triggers for libc-bin (2.30-8) ... Now it quits at $ LANG=C sudo apt --fix-broken install ... Errors were encountered while processing: /tmp/apt-dpkg-install-ty8ZSt/00-mysql-server-5.7_5.7.26-1+b1_amd64.deb So, I did: $ LANG=C sudo dpkg -r mysql-server-5.7 mysql-server (Reading database ... 494493 files and directories currently installed.) Removing mysql-server (5.7.26-1) ... dpkg: error processing package mysql-server-5.7 (--remove): package is in a very bad inconsistent state; you should reinstall it before attempting a removal Errors were encountered while processing: mysql-server-5.7 Tried to force it: $ LANG=C sudo dpkg -r --force-remove-reinstreq mysql-server-5.7 dpkg: warning: overriding problem because --force enabled: dpkg: warning: package is in a very bad inconsistent state; you should reinstall it before attempting a removal (Reading database ... 494488 files and directories currently installed.) Removing mysql-server-5.7 (5.7.22-1) ... Failed to reload daemon: Access denied Failed to retrieve unit state: Access denied Failed to stop mysql.service: Access denied See system logs and 'systemctl status mysql.service' for details. invoke-rc.d: initscript mysql, action "stop" failed. dpkg: error processing package mysql-server-5.7 (--remove): installed mysql-server-5.7 package pre-removal script subprocess returned error exit status 1 Failed to reload daemon: Access denied Failed to retrieve unit state: Access denied Failed to stop mysql.service: Access denied See system logs and 'systemctl status mysql.service' for details. invoke-rc.d: initscript mysql, action "stop" failed. Failed to reload daemon: Access denied Failed to reload daemon: Access denied Failed to retrieve unit state: Access denied Failed to start mysql.service: Access denied See system logs and 'systemctl status mysql.service' for details. invoke-rc.d: initscript mysql, action "start" failed. Failed to get properties: Access denied dpkg: error while cleaning up: installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: mysql-server-5.7 Any idea why the access denied? Marco On Mon, May 18, 2020 at 11:12 PM Andrey Rahmatullin wrote: > On Mon, May 18, 2020 at 11:05:02PM -0700, Marco Paolieri wrote: > > Is there a different way I should remove the libkf5ldap5 package? > Try dpkg -r. Though if something depends on it, and it probably does, > you'll need either ask dpkg to ignore deps, or remove all deps too. > > > On Mon, May 18, 2020 at 11:03 PM Marco Paolieri > wrote: > > > > > Thank you very much for the suggestion... What I get is: > > > > > > $ LANG=C sudo apt-get remove libkf5ldap5 > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > You might want to run 'apt --fix-broken install' to correct these. > > > The following packages have unmet dependencies: > > > accountwizard : Depends: libkf5pimcommon5-19.08 > > > Depends: libkf5pimcommon5abi2 (>= 4:19.08.3) but it is > not > > > going to be installed > > > akonadiconsole : Depends: libkf5akonadisearchcore5 (>= 4:19.08.3) but > > > 4:17.12.3-1 is to be installed > > > ... > > > E: Unmet dependencies. Try 'apt --fix-broken install' with no packages > > > (or specify a solution). > > > > > > $ LANG=C sudo apt --fix-broken install > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Correcting dependencies... Done > > > The following additional packages will be installed: > > > kaddressbook kde-standard kdepim-addons kdepim-themeeditors kdiff3 > > > kf5-kdepim-apps-libs-data kgpg kmail libkf5akonadisearch-bin > > > libkf5akonadisearch-plugins libkf5akonadisearchcore5 > > > libkf5akonadisearchxapian5 libkf5akonadixml5 libkf5alarmcalendar-data > > > libkf5alarmcalendar5abi1 libkf5eventviews5abi1 libkf5followupreminder5 > > > libkf5gravatar5abi2 libkf5imap-data > > > libkf5incidenceeditor-data libkf5kaddressbookimportexport5 > > > libkf5ldap-data libkf5mailcommon-data libkf5mailcommon5abi2 > > > libkf5mailimporter5 libkf5mailimporterakonadi5 > > > libkf5messagecomposer5abi1 libkf5messagecore5abi1 > libkf5me