Score:1

Can't remove Signal-Desktop in Ubuntu 20.x

in flag

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.

David avatar
cn flag
Based on the information provided here it is not a problem with removing signal it is a corrupted sources list. Remove the offending line from the sources file.
guiverc avatar
cn flag
Please be specific on your release; Ubuntu 20.04 LTS is the LTS release, and 20.10 is the first of the non-LTS releases that work towards the next Ubuntu 22.04 LTS release, so they are different products with many differences (19.10 & 20.04 are far closer than 20.04 & 20.10)
pLumo avatar
in flag
I give +1 because you added all relevant information. I guess you got a downvote from someone for not doing (or not sharing) research, e.g. [this related question](https://askubuntu.com/questions/78951/how-do-i-remove-a-malformed-line-from-my-sources-list) would have been a good source for such issues in general.
Score:2
in flag

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

in flag
Thank you for your help. It fixed the issue in no time. Signal is gone. In fact I don't recommend using it.
pLumo avatar
in flag
If the answer helped you, you can click the checkmark next to the answer. Also it would interest me why you would not recommend it, any issues with it? I use Signal a lot and can recommend it, however, I'm using the [snap version](https://snapcraft.io/signal-desktop).
in flag
I won't recommend it precisely because of the issue encountered. Signal is also hosted by Amazon Web Services. So, talking about security, encryption, and so on stops here. Under US law Signal has to disclose data to 3-letter US agencies we know who they are if Signal is asked for, Telegram is not perfect better in this sense.
Score:-1
id flag

As per Travel's Hunter diagnose, I find I had lost most of my sudo superpowers. In the terminal: $ sudo nautilus

then in the file browser went to: /etc/apt/sources.list.d

deleted signal-xenial.list and other signal something file

then I had recovered my sudo super powers and simply used the same you tried in the begining: $ sudo apt-get purge signal-desktop

IS_Eagle_NG avatar
vn flag
I think your issue here is very different as there seems to be a system breakdown of your Ubuntu. You will need to do other system checks and audit or backtracking to find out what went wrong.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.