Score:2

malformed entry in sources.list error when trying to install albert

us flag

I had tried to install Albert on ubuntu by using the following codes. The Ubuntu version I have is 20.04

curl https://build.opensuse.org/projects/home:manuelschneid3r/public_key | sudo apt-key add -

echo 'deb http://download.opensuse.org/repositories/home:/-manuelschneid3r/xUbuntu_20.04//' | sudo tee /etc/apt/sources.list.d/home:manuelschneid3r.list

sudo wget -nv https://download.opensuse.org/repositories/home:manuelschneid3r/xUbuntu_20.04/Release.key -O "/etc/apt/trusted.gpg.d/home:manuelschneid3r.asc"

sudo apt update

sudo apt install Albert

But I got this error:

Desktop:~$ sudo apt update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/home:manuelschneid3r.list (Suite)
E: The list of sources could not be read.

Now everytime I open my terminal and try to install some package and use sudo apt update. I get the above error.

I've reset and cleared the terminal, but I still get the same error. How can I clear the terminal so that I can work on terminal?

Score:2
in flag

Visiting the URL you provided for the repository in a browser results in this response:

Resource is no longer available!

As a result, there's little chance of installing Albert from that location.

HOWEVER, if you ditch the - in the URL and use this:

http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04/

Then it will work.

So, with this in mind, edit your manuelschneid3r.list file like this:

  1. Open Terminal (if it's not already open)
  2. Edit the .list file with sudo:
    sudo {editor of choice} /etc/apt/sources.list.d/home:manuelschneid3r.list
    
    Note: You may want to do something about that file name. Rather than home:manuelschneid3r.list, perhaps rename it to manuelschneid3r.list
  3. Edit the URL, to remove the erroneous dash. The file should now look like:
    deb http://download.opensuse.org/repositories/home:/manuelschneid3r/xUbuntu_20.04/ /
    
  4. Update apt:
    sudo apt update 
    

From here, you should be able to install Albert.

Source

Soren A avatar
mx flag
You mean `sudo apt update' in point 3, right ?
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.