2

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.

0

3 Answers 3

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.

4
  • 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, 2015 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? Sep 5, 2015 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, 2015 at 23:09
  • 1
    If you have a different issue, please open a new question. Sep 7, 2015 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*

7
  • Hi thank you for your prompt response. I tried these steps but it always shows me that this sourse doesnt exist :(
    – Pauli
    Sep 5, 2015 at 18:28
  • @Pauli You may want to try sudo rm -rf etc/apt/sources.list.d/virtualbox.list
    – TellMeWhy
    Sep 6, 2015 at 9:27
  • @Pauli if that doesn't work, then what is the error you're getting?
    – TellMeWhy
    Sep 6, 2015 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, 2015 at 23:10
  • @Pauli Do you get the same error when trying the above - that the file doesn't exist?
    – TellMeWhy
    Sep 7, 2015 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
  • -1 This won't work because the file is owned by the root account. Jul 16, 2016 at 22:47

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