Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Error in installing youtube-dl package

sudo apt-get install youtube-dl -y
[sudo] password for hp: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ffmpeg libav-tools libavcodec-extra-53 libavdevice53 libavfilter2
  libavformat53 libavutil-extra-51 libpostproc52 libswscale2 rtmpdump
Suggested packages:
  libfaad0 mplayer
The following NEW packages will be installed:
  ffmpeg libav-tools libavdevice53 libavfilter2 rtmpdump youtube-dl
The following packages will be upgraded:
  libavcodec-extra-53 libavformat53 libavutil-extra-51 libpostproc52
  libswscale2
5 upgraded, 6 newly installed, 0 to remove and 488 not upgraded.
Need to get 4,471 kB of archives.
After this operation, 2,614 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpostproc52 amd64 4:0.8.8-0ubuntu0.12.04.1 [63.4 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libswscale2 amd64 4:0.8.8-0ubuntu0.12.04.1 [92.2 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libavformat53 amd64 4:0.8.8-0ubuntu0.12.04.1 [495 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe libavcodec-extra-53 amd64 4:0.8.8ubuntu0.12.04.1 [2,932 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe libavutil-extra-51 amd64 4:0.8.8ubuntu0.12.04.1 [67.7 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libavdevice53 amd64 4:0.8.8-0ubuntu0.12.04.1 [29.1 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libavfilter2 amd64 4:0.8.8-0ubuntu0.12.04.1 [80.7 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libav-tools amd64 4:0.8.8-0ubuntu0.12.04.1 [615 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ffmpeg all 4:0.8.8-0ubuntu0.12.04.1 [2,226 B]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/universe rtmpdump amd64 2.4~20110711.gitc28f1bab-1 [46.6 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise-updates/universe youtube-dl all 2012.02.27-1ubuntu0.1 [46.7 kB]
Fetched 4,471 kB in 8min 49s (8,440 B/s)                                       
E: Problem renaming the file /var/cache/apt/pkgcache.bin.y3818z to /var/cache/apt/pkgcache.bin - rename (2: No such file or directory)
debconf: apt-extracttemplates failed: No such file or directory
dpkg: error: dpkg status database is locked by another process
E: Sub-process /usr/bin/dpkg returned an error code (2)
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.