Wednesday, May 15, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 4216  / 3 Years ago, fri, july 16, 2021, 12:04:23

I Can't remove Signal-Desktop (https://signal.org/) in Ubuntu 20.x


The app was originally installed by using Signal official website installation instructions:


Linux (Debian-based) Install Instructions


NOTE: These instructions only work for 64 bit Debian-based
Linux distributions such as Ubuntu, Mint etc.



  1. Install our official public software signing key


     wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg
    cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null


  2. Add our repository to your list of repositories


     echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' |
    sudo tee -a /etc/apt/sources.list.d/signal-xenial.list


  3. Update your package database and install signal


     sudo apt update && sudo apt install signal-desktop





ISSUE


To remove the signal-desktop I use any of the following:


$ sudo apt-get purge signal-desktop
$ sudo apt remove signal-desktop
$ sudo apt remove signal-desktop

Every time the removal is attempted it gives the following message:


E: Malformed line 3 in source list /etc/apt/sources.list.d/signal-xenial.list (type)
E: The list of sources could not be read.
E: Malformed line 3 in source list /etc/apt/sources.list.d/signal-xenial.list (type)
E: The list of sources could not be read.

Using sudoedit /etc/apt/sources.list.d/signal-xenial.list


I can open the file that shows


deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt>

$ sudo apt-get update also doesn't work as I get the message


E: Malformed line 3 in source list /etc/apt/sources.list.d/signal-xenial.list (type)
E: The list of sources could not be read.

I am not sure how to remove Signal.


More From » apt

 Answers
4

Your line 3 in the file is wrong:


deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt>

should be


deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main

(xenial main in the end instead of >).


To fix it, you can edit the file manually or simply run the command from the documentation again, but without -a flag for tee (-a means append, but we want to replace!):


echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' 
| sudo tee /etc/apt/sources.list.d/signal-xenial.list

Then you can run sudo apt update again


[#1135] Friday, July 16, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bunsistent

Total Points: 198
Total Questions: 108
Total Answers: 121

Location: Monaco
Member since Sun, Jan 16, 2022
2 Years ago
bunsistent questions
Thu, Aug 5, 21, 12:26, 3 Years ago
Wed, Jul 7, 21, 11:58, 3 Years ago
Tue, May 25, 21, 04:26, 3 Years ago
Fri, May 12, 23, 19:42, 1 Year ago
;