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.
  • 92,125
Pauli
  • 21

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,890
  • 56
  • 97
  • 151
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,964
  • 41
  • 100
  • 142
-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