Extracted instead of Installed

Hi,
I am relatively new to linux and am afraid I made a mistake.
I am running the latest Bizantium version of PureOS on a mini.
I downloaded a .deb file for ProtonMail app and extracted it into my home folder thinking there would be installation instructions.
Then I looked online for install instructions and found I should NOT have extracted, just installed.
Can I un-extract the files ? Or find the files and delete them ?
Or should I just install using “sudo apt install ProtonMail-desktop-beta.deb” and let the system clean up the mess ?
Thanks, Tom

1 Like

You can simply follow the installation instructions.

Extracting the package didn’t do any harm. If you can identify the extracted files, you should be able to just delete them before you start installing again.

Typically, extracting a compressed/archived folder can be done as an “extract to…,” in which you choose to create an uncompressed version of the original folder somewhere on your computer, such as:

  1. “extract to here” (create in the current directory), or
  2. “extract to (…navigate to desired directory and create it…)”

P.S. The extracted folder you created will have the same name as the compressed .deb package, so it’s easy to identify.

1 Like

Thank you. I feel better. I’ll just install. Tom

2 Likes

The install is not working.
This is the zipped file sitting in Downloads: ProtonMail-desktop-beta.deb
This is the output when I try to install:
tom@Lucy-the-cat:~/Downloads$ sudo apt install ProtonMail-desktop-beta.deb
[sudo] password for tom:
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package ProtonMail-desktop-beta.deb
E: Couldn’t find any package by glob ‘ProtonMail-desktop-beta.deb’
tom@Lucy-the-cat:~/Downloads$

Thanks, Tom

1 Like

This usually means that the package is not located in the same directory where you are in the Terminal, or that the name you typed doesn’t match the package exactly.

Go to your Downloads directory (GUI version) and confirm that the package is indeed located there, and that its name matches what you typed in the Terminal.

2 Likes

I think something was broken. I deleted the .deb package and tried to download again and the site would not download a .deb package.

I did go to the “usr” folder and delete all the folders containing Proton Mail files.

Thanks for your help. Tom

1 Like

You can try this method instead:

sudo apt install gdebi

Then right-click the .deb package and choose “Open with GDebi Package Installer.”

That should work with all .deb packages. It should also install any other needed dependencies.

2 Likes

I think what you did wrong here is that you need:
sudo apt install ./ProtonMail-desktop-beta.deb

The logic is that the argument to apt install can be either a package name or the path name of a .deb file. You need to force it to recognise that you want the second scenario.

Regardless though, you will need to manage to download the .deb file again if you have deleted it.

3 Likes

Thank you for the additional info. I’ve contacted Proton about the issue and hopefully they will provide a good .deb file.

1 Like

sudo apt install ./ProtonMail-desktop-beta.deb worked !! Thanks

3 Likes

Sometimes apt wants to see a ./something for the current directory otherwise it tries to search through online sources…

1 Like