0

I couldn't be able to remove the default files app of elementary. whenever I from terminal it says

E: Unable to locate package io.elementary.files
E: Couldn't find any package by glob 'io.elementary.files'
E: Couldn't find any package by regex 'io.elementary.files'

and in appcenter it says

Application state not set as installed in AppCenter for package: Files

1
  • What app are you trying to remove and how? What command you type in terminal to remove the app? – Sysadmin Jul 5 '20 at 6:22
0

How to remove any package from the system using terminal.

Proper way is to type in terminal :

sudo apt purge nameoftheapp 
6
  • that doesn't work either in my case it is io.elementary.files I tried everything for some reason my default applications broken. It says there no io.elementary.files app but clearly I can see it and launch it. – Aras Jul 5 '20 at 6:39
  • Why you want to remove the crucial part of the system? github.com/elementary/files – Sysadmin Jul 5 '20 at 6:42
  • there are some bugs like (couldn't show the icons of my .mat file folder, It sometimes couldn't recognize my plugged in storage device and search functionality is not as powerful as nautilus) thats why I would like to make nautilus as my default file manager. even though I choose nautilus as my default files app, firefox keeps opening downloaded files from the io.elementary.file app which makes me really want to remove the app – Aras Jul 5 '20 at 6:48
  • Also I just tested I couldn't remove any default elementary app. For example I dont use calendar which I dont needed. whenever I try to uninstall it gives me same error as the default files app – Aras Jul 5 '20 at 6:49
  • I provided the tutorial how to install the Elementary OS App Center. The same way you need to reinstall files. – Sysadmin Jul 5 '20 at 6:49
0

How to install the Elementary OS App Center

Install dependcies:

sudo apt install -y libaccountsservice-dev libgdk-pixbuf2.0-dev libgranite-dev libgtk-3-dev liblightdm-gobject-1-dev libwingpanel-2.0-dev libx11-dev meson valac libmutter-2-0 libmutter-2-dev libcanberra-dev libcloudproviders-dev libdbus-glib-1-dev libgail-3-dev libgee-0.8-dev libglib2.0-dev libnotify-dev libpango1.0-dev libplank-dev libsqlite3-dev libunity-dev libzeitgeist-2.0-dev libappstream-dev gettext libflatpak-dev libhandy-0.0-dev libjson-glib-dev libpackagekit-glib2-dev libpolkit-gobject-1-dev libsoup2.4-dev libxml2-dev libxml2-utils libhandy-0.0 libpackagekit-glib2-dev appstream-util

Update the system:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Type following commands in terminal one by one:

cd 
cd Downloads
wget https://github.com/elementary/appcenter/archive/master.zip
unzip master.zip
cd appcenter-master
meson build --prefix=/usr 
cd build 
ninja
sudo ninja install io.elementary.appcenter
8
  • Thanks for the help. Unfortunately it didn't work out. after using "ninja" it gave me an error " warning: AppStream.ProvidedKind.MIMETYPE' is deprecated. Use MEDIATYPE" I had 3 more warning like this ("Gtk.Dialog.get_action_area' has been deprecated since 3.12" "implicit .begin is deprecated" "`Gtk.Dialog.get_action_area' has been deprecated since 3.12"). Eventhough I had the error I still tried to install the appcenter but ended up having "ninja: error: unknown target 'io.elementary.appcenter' " – Aras Jul 5 '20 at 7:22
  • Reload the thread , check corrected tutorials. Install dependencies. Warnings are not important in this case. – Sysadmin Jul 5 '20 at 7:24
  • If this will not solve the issue, then reinstall the whole Elementary OS system from the scratch using the newest iso file from here: elementary.io just type 0 and then click download. Download also Balena Etcher from here: balena.io/etcher Install it and then make bootable usb drive with the downloaded iso. – Sysadmin Jul 5 '20 at 7:43
  • By the way do not remove default apps, because you will damage the system. – Sysadmin Jul 5 '20 at 7:49
  • I did it on my old laptop which was running elementaryos and nothing break after doing that. I only had this issue on my new laptop. I am having this issue for the first time – Aras Jul 5 '20 at 7:52
0

How to install Elementary OS Files App.

Install dependcies:

sudo apt install -y libaccountsservice-dev libgdk-pixbuf2.0-dev libgranite-dev libgtk-3-dev liblightdm-gobject-1-dev libwingpanel-2.0-dev libx11-dev meson valac libmutter-2-0 libmutter-2-dev libcanberra-dev libcloudproviders-dev libdbus-glib-1-dev libgail-3-dev libgee-0.8-dev libglib2.0-dev libnotify-dev libpango1.0-dev libplank-dev libsqlite3-dev libunity-dev libzeitgeist-2.0-dev libhandy-0.0 libpackagekit-glib2-dev appstream-util

Update the system:

sudo apt update
sudo apt upgrade
sudo apt dist-upgrade

Then in terminal type:

cd 
cd Downloads
wget https://github.com/elementary/files/archive/master.zip
unzip master.zip
cd files-master
meson build --prefix=/usr 
cd build 
ninja
sudo ninja install io.elementary.files

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.