2

This question already has an answer here:

I am trying to update software of my Ubuntu 14.04 but there is an error:

malformed line /etc/apt/sources.list.d/virtualbox.list (dist) ; access to this source denied.
E:opening etc/apt/sources.list.d/virtualbox.list-ifstream::ifstream(13: Permission denied)
E: List of source could not be read
E:The package lists or status file could not be parsed or opened.

Could you please help me to remove this virtualbox.list.

I really appreciate yourhelp.

marked as duplicate by karel, Kaz Wolfe, Zanna, Eric Carvalho, TheWanderer Dec 29 '16 at 11:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

6

You'll need super-user privileges to delete that file. The easiest way would be to open a terminal (e. g. with Ctrl+Alt+T) and run

sudo rm /etc/apt/sources.list.d/virtualbox.list*

This will prompt for your password and (after supplying the correct one) delete the pertaining files.

  • Hi I tried this but it is not working. There is showing error as per computer this source do not exist so it cannot be removed. Any idea? Thank you for your help :) – Pauli Sep 5 '15 at 18:31
  • Then I don't understand, how apt-get can complain about malformed content of a file, that doesn't exist. Does the original error still occur? – David Foerster Sep 5 '15 at 20:07
  • Hi, somehow I was able to remove virtualbox from sources.list. Now I am facing other problem. I was trying to install winUSB. I used following link and I was following all steps: upubuntu.com/2015/01/… . Program was not installed because it shows some problem with packages - they are as per terminal demaged. Now I have again in sources.list - upubuntu-com-system-trusty.list and I am not able to remove it :( Could you please help me with this? THANK YOU VERY MUCH – Pauli Sep 6 '15 at 23:09
  • 1
    If you have a different issue, please open a new question. – David Foerster Sep 7 '15 at 19:24
0

You can remove it easily actually:

  1. cd /etc/apt/sources.list.d - move to the sources.list.d directory

  2. sudo rm /etc/apt/sources.list.d/virtualbox.list*

  • Hi thank you for your prompt response. I tried these steps but it always shows me that this sourse doesnt exist :( – Pauli Sep 5 '15 at 18:28
  • @Pauli You may want to try sudo rm -rf etc/apt/sources.list.d/virtualbox.list – TellMeWhy Sep 6 '15 at 9:27
  • @Pauli if that doesn't work, then what is the error you're getting? – TellMeWhy Sep 6 '15 at 9:28
  • Hi, somehow I was able to remove virtualbox from sources.list. Now I am facing other problem. I was trying to install winUSB. I used following link and I was following all steps: upubuntu.com/2015/01/… . Program was not installed because it shows some problem with packages - they are as per terminal demaged. Now I have again in sources.list - upubuntu-com-system-trusty.list and I am not able to remove it :( Could you please help me with this? THANK YOU VERY MUCH – Pauli Sep 6 '15 at 23:10
  • @Pauli Do you get the same error when trying the above - that the file doesn't exist? – TellMeWhy Sep 7 '15 at 17:46
-1

Jus enter to the root that the error gives you /etc/apt/sources.list.d using Nautilus and delete the file virtualbox.list

I was having the same problem:

E: Tipo «http://download.virtualbox.org/virtualbox/debian» desconocido en la línea 1 de lista de fuentes /etc/apt/sources.list.d/vbox.list
E: No se pudieron leer las listas de fuentes.
  • -1 This won't work because the file is owned by the root account. – David Foerster Jul 16 '16 at 22:47

Not the answer you're looking for? Browse other questions tagged or ask your own question.