Score:0

E: Malfored entry 1 in list file /etc/apt/sources.list.d/virtualbox.list (Suite) E: The list of sources could not be read

jm flag

I was installing virtualbox and when i enter this:

$ echo "deb {arch=amd64} http://virtualbox.org/virtualbox/debian
> (lsb_release -cs)contrib
> (lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

This showed:

[sudo] password for marie: 
deb {arch=amd64} http://virtualbox.org/virtualbox/debian
(lsb_release -cs)contrib
(lsb_release -cs) contrib

I then try to do:

$ sudo apt-get update
Malformed entry 1 in list file /etc/apt/sources.list.d/virtualbox.list (Suite)
E: The list of sources could not be read.

Can someone help me please?

user535733 avatar
cn flag
Are you certain that you want the upstream virtualbox? The version in the Ubuntu repositories works very well and is much simpler to install.
muru avatar
us flag
The command should have been `echo "deb [arch=amd64] http://virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list` all in one line.
ArrayBolt3 avatar
ls flag
I disagree that this question is a duplicate. The problem isn't that there's a malformed line that needs to be removed, the problem is that the user typed something incorrect and it caused a malformed line. The answer (which @muru thankfully gave in the comments) is to overwrite the incorrectly created file with a new one created using the right command.
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.