Unable to lock the list directory

Asked by Jane smith

while mentioning i have given the wrong apt command and wile reloading the synpatic packages i am getting a error as

E: Type 'ftp://ftp.videolan.org/pub/videolan/ubuntu' is not known on line 32 in source list /etc/apt/sources.list
E: Unable to lock the list directory

anybody can help me....

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
marcobra (Marco Braida)
Solved:
Last query:
Last reply:
Revision history for this message
Jane smith (arunmain) said :
#1

i am a new person to this help me.....

E: Type 'ftp://ftp.videolan.org/pub/videolan/ubuntu' is not known on line 32 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: Type 'ftp://ftp.videolan.org/pub/videolan/ubuntu' is not known on line 32 in source list /etc/apt/sources.list
E: Unable to lock the list director

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

The line regarding videolan (may be the line number 32) of /etc/apt/sources.list is wrong.

Please delete it, open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo gedit /etc/apt/sources.list

give your user password when requested, you don't see nothing when you type it, then press enter.

Save and exit then retry.

------------------------------------------------------
To install videolan (vlc)
--------------------------------------------------------

You need to have extra repositories enabled..

To enable all the software repositories:

Using System->Administration->Software sources [Ubuntu software tab] please enable (Check the checkbox) all the showed repositories rows.

after getting all the required repositories enabled

Type the following command in a terminal (applications -> accessories -> terminal)

sudo aptitude install vlc

To get dvd playback

sudo aptitude install libdvdread3 libdvdnav4 libdvdcss2

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

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

Then be sure your system is fully upgraded, to check:
open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get clean all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean all
sudo apt-get autoremove

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
Jane smith (arunmain) said :
#4

thanks a lot it worked......

Revision history for this message
Jane smith (arunmain) said :
#5

Thanks marcobra, that solved my question.

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

Better to get dvd playback you need to add the medibuntu repository to your /etc/apt/sources.list file:
here howto add https://help.ubuntu.com/community/Medibuntu

sudo update
sudo aptitude install libdvdread3 libdvdnav4 libdvdcss2

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps