I can't get updates due apt repository sources error

Asked by Alex

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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'

Revision history for this message
zvacet (ivicakolic) said :
#2

Type

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

and post output here.

Revision history for this message
Alex (alex83lopez) said :
#3

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

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#4

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.