I can't get updates due apt repository sources error

Asked by Alex on 2011-12-09

i was installing virtualbox, everything went fine but now i cant get ubuntu's updates.

i get this error 'E:Type 'dir' is not known on line 2 in source list /etc/apt/sources.list.d/virtualbox.list'

Question information

English Edit question
Ubuntu apt Edit question
No assignee Edit question
Last query:
Last reply:
Alex (alex83lopez) said : #1

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Type 'dir' is not known on line 2 in source list /etc/apt/sources.list.d/virtualbox.list'

zvacet (ivicakolic) said : #2


cat /etc/apt/sources.list.d/virtualbox.list

and post output here.

Alex (alex83lopez) said : #3

this is what i get
sudo apt-key add - && sudo aptitude update && sudo aptitude -y install virtualbox-3.2 && sudo adduser $(whoami) vboxusers

Please remove the wrong file you made while tryng to install virtualbox.

From terminal type:

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

Take care of spaces when you type the above command...

The system will ask you for a password type your password, you will not have any screen feedback typing your password, so type the press enter.

If the above command do not give you error all is ok.

Please try to update your system

Can you help with this problem?

Provide an answer of your own, or ask Alex for more information if necessary.

To post a message you must log in.