"Unable to remove xxx: no packages to remove"

I’ve just tried to get rid of “Advanced Network Configuration”, but the following part of the reply scared me:

“The following packages will be REMOVED:
librem5-gnome librem5-gnome-base
librem5-gnome-phone”

Am I doing a mistake by deleting all those packages?

I would strongly recommend not removing packages like that.

If you just want to remove the icon from your app drawer/homescreen, there is a better way.

To hide any package icon, you just need to add NoDisplay=true to the bottom of the .desktop file for that package.

For the Advanced Network Configuration package, do this:

  1. Copy nm-connection-editor.desktop from /usr/share/applications/ to ~/.local/share/applications/ using a file manager or using this command:

    cp /usr/share/applications/nm-connection-editor.desktop ~/.local/share/applications/
    
  2. Open nm-connection-editor.desktop in a text editor like gedit, and add NoDisplay=true to the bottom of the file, or run this command:

    echo 'NoDisplay=true' >> ~/.local/share/applications/nm-connection-editor.desktop
    

You can do this to hide any package icon. The only thing you need to do is find the name of the .desktop file.

2 Likes

If you sudo nano the file you want to edit, you don’t need to copy it.

These commands don’t give you the right spelling for apps you aim to remove. Handy no less, of course.

I have pretty much abandoned the store and do everything with command line now. That never fails…unless of course the mirrors are unreachable for some reason.

If you do that, updates for the packages you hide will overwite and undo your edits, and you will have to hide them again. Doing it the way I described is a permanent solution to hide packages.

1 Like

Thanks for your tip, but that’s not exactly what I want to do…

Actually, I’d like to uninstall apps I don’t use. As I use “Settings” to manage my network connections, I don’t need “Advanced Network Configuration” (plus, this app is tagged as a “non mobile friendly app”).

On the other hand, removing a package with a name as “wide” as “librem5-gnome-phone” sounds pretty scary for a newbie like me, and could lead to bugs I will not be able to fix…

I guess I will try your advice if there’s an app needed for my phone to run properly, but I don’t want to see the icon on my homescreen.

Advanced Network Connections comes in handy for setting up a VPN connection for providers whose graphical clients don’t work, or don’t fit well, on the L5.

Also, it’s still possible to make the app fit better, just by adjusting the scale, either in the main Settings app or in phosh-mobile-settings.

But if you’re not concerned about running a VPN, disregard.

Indeed! I think you have answered your own question. The benefit of removing random unused packages is outweighed by the risk, in this case.

That said, there is some merit in learning how to use Jumpdrive to image your entire eMMC drive so that if you create a situation that you are not able to fix (i.e. you break something irreversibly) then you can just restore the image.

Just hiding the app is safer.

From a security point of view it is better to uninstall unused software but …

Ah, yeah, sure. Hadn’t thought of that. Thanks.

I find it weird not to have the possibility of removing an app without removing packages which names sound like being essential to the phone…

You’ve convinced me. Any link/advice so I can get to learn how to use Jumpdrive?

High level overview …

Pre-requisite: You’ll need an x86 (host) computer running a Linux distro.

The basic idea is that you boot Jumpdrive on your phone by having the phone download Jumpdrive via USB from a host computer.

Jumpdrive then exposes the phone’s internal eMMC drive as a USB device on the host (and if you have a uSD card inserted in the phone then Jumpdrive exposes the uSD card as a USB device on the host). You can then image those USB devices on your host computer to a file on your host computer (e.g. using dd or probably Gnome Disks or other utilities).

Tip: If you are going to image a device on the host then make sure that the device is not mounted on the host. If the device mounted automatically or it mounted because of something that you did then you should umount any relevant file systems before proceeding to image the device. Note that the internal eMMC drive will typically have two partitions and may therefore have two mounted file systems.

On the host computer you will need the uuu command. That will either a) already exist, or b) be able to be installed with sudo apt install uuu or c) need to be built from source. So your starting point is which uuu to see whether the command is already available. If you need to build from source: https://source.puri.sm/Librem5/community-wiki/-/wikis/Building-uuu-and-Jumpdrive

You will need to download Jumpdrive (location given in the following linked post).

This and the rest of the procedure are ably covered at: Updated today , now phone won't turn on/start up (but ignore the context in which Joao was posting those instructions).

Jumpdrive can be used in a number of emergency situations. In some cases it may be possible to repair the damage that you have caused without having to restore a disk image. Restoring a disk image should usually be the last resort.

2 Likes

It’s pretty clear, thanks!

Now the only thing I need is some time to give it a try!

1 Like

Last month, I found myself needing to backup/restore my Librem 5 and tried to automate what I could. I mentioned it in this post.

yeah! now you know how to uninstall.

I am trying but I get an error: The app-gnome-music package could not be located.

and I have listed the applications to put the name right and it didn’t work even with: app-gnome-music
nor with:
app-org.gnome.Music.desktop

neither is working for cawbird. they are the only ones I have tried since they are the only ones I want to remove.

1 Like

Sorry for taking so long to respond: I am not as active on the forum as I once was. Not a lot happening with the L5, so my interest is somewhat down.
And I am afraid this is as far as my insights go. Maybe someone else knows more.

2 Likes

thank you very much for your concern, I was looking and it turns out that in all the tests I was doing there was a typing error and that’s why it failed. now the solution works perfectly, thanks.

1 Like

ah, good to hear.

2 Likes