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.

A.B.
  • 90,397
Pauli
  • 21
  • 1
  • 3

3 Answers3

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.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
  • 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 05 '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 05 '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: http://www.upubuntu.com/2015/01/winusb-create-bootable-usb-flash-drive.html . 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 06 '15 at 23:09
  • 1
    If you have a different issue, please open a new question. – David Foerster Sep 07 '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*

TellMeWhy
  • 17,484
  • Hi thank you for your prompt response. I tried these steps but it always shows me that this sourse doesnt exist :( – Pauli Sep 05 '15 at 18:28
  • @Pauli You may want to try sudo rm -rf etc/apt/sources.list.d/virtualbox.list – TellMeWhy Sep 06 '15 at 09:27
  • @Pauli if that doesn't work, then what is the error you're getting? – TellMeWhy Sep 06 '15 at 09: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 06 '15 at 23:10
  • @Pauli Do you get the same error when trying the above - that the file doesn't exist? – TellMeWhy Sep 07 '15 at 17:46
  • @DevRobot you need a / in front of etc. that's the reason the path is not found -- you've specified the wrong one. – amc Jul 16 '16 at 16:52
  • @amc OMG LOL - how did I miss that :(( – TellMeWhy Jul 16 '16 at 18:37
-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.
Ivan
  • 1