can't install vlc thru terminal or spm

Asked by Javier Resendiz

Hi, I'm having a problem installing vlc thru terminal and spm I've try both and not working giving me errors both.

I install totem- gstreamer and libdvdread4 package in Terminal thru the post I read about problems with openning vids and dvd.

I installed them both and works fine. But now some mpeg videos in firefox will not play it's only a black screen, I right click on the video in options I can choose totem and it will play fine. I read more post and read about vlc player I installed it.

I think totem is overring flash is this possible?

Tried installing it thru both terminal and spm with errors;

Terminal tried - sudo apt-get install vlc
game error;
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
I don't have anything open that I now of?
SPM tried install an gives an error window with;

Unable to get exclusive
this usually means that another package management application (apt-get or aptitude) is
running. Please close that application first.

How can I find what is running to close it and install VLC?

thanks in advance. Can you help? Its not like window that for sure.

Jav

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Javier Resendiz (javier-resendiz) said :
#1

Sorry I installed liddvdcss not liddvdread4

Revision history for this message
Javier Resendiz (javier-resendiz) said :
#2

Forgot to include that I'm running Ubuntu 10.04 on a Lenevo laptop x60.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Do you have software centre open or are updates running currently? If so, this will lock the packages and you should either close software centre (assuming it is idle) or wait for updates to finish.

If both these cases are not true then you can run:

sudo fuser -vki /var/lib/dpkg/lock;sudo dpkg --configure -a

And kill the dpkg process when asked, this will free up the system.

Revision history for this message
Javier Resendiz (javier-resendiz) said :
#4

actionparsnip,

thanks for your help that did work to kill dpkg process, but this error came up after that;

Processing triggers for desktop-file-utils ...
Processing triggers for man-db ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing man-db (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for fontconfig ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
Setting up ttf-droid (1.00~b112+dfsg+1-0ubuntu1) ...
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for DroidSansJapanese, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for DroidSansJapanese-JaH, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
Updating fontconfig cache for /usr/share/fonts/truetype/ttf-droid

Setting up wine1.2-gecko (1.0.0-0ubuntu4) ...
Setting up libmpg123-0 (1.12.1-0ubuntu1) ...

Setting up cabextract (1.2-3+lenny1build0.10.04.1) ...
Setting up ttf-symbol-replacement (1.2.2-0ubuntu2~lucid1) ...
Setting up wine1.2 (1.2.2-0ubuntu2~lucid1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing wine1.2 (--configure):
 subprocess installed post-installation script returned error exit status 1
Processing triggers for python-support ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 man-db
 wine1.2

I had installed wine before with out any errors so not sure why this is coming up?
I un-installed wine thru spm and work fine just to fix the errors for now.
Not sure what man-db is?
any ideas?

thanks for you help again in advanced.

Revision history for this message
Javier Resendiz (javier-resendiz) said :
#5

actionparsnip,

 I thought wine had finished un-installing but stopped, it did not un-install.
found out about man-db - manual database , but still not sure on what to do?

Still can't remove any other program either.

This is all new to me switching from windows, I could figure out how to fix problem but this is more like
dos. Well like I said, thanks for your help on these issues.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6

Try:

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*; sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists; sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean; LANG=C;sudo apt-get autoclean
LANG=C;sudo apt-get update
sudo dpkg --clear-avail; sudo dpkg --configure -a
LANG=C;sudo apt-get install -f
LANG=C;sudo apt-get update
LANG=C;sudo apt-get dist-upgrade

May help

Revision history for this message
Javier Resendiz (javier-resendiz) said :
#7

That's great it worked to unlock dpkg, thank you.

I was able to install vlc.
how can I make this the default player? And if this is done will it cause problems
playing dvd's?

Mpeg files still don't play in firefox only if i right click on the black screen;and click on media player,
 is this totem-media player?
Or do I need to install something else? I've updated flash player already thru unbuntu software center.

Not sure why Mpeg files only open in a black screen in firefox, all other mpeg file on the laptop open fine.

thank for your help in unlocking the dpkg again. hope you still help me on this issue?

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#8

Right click files and select them to open with VLC. VLC can play DVDs quite happily.

http://ubuntuforums.org/archive/index.php/t-333714.html

Should do it.

Revision history for this message
Javier Resendiz (javier-resendiz) said :
#9

Thanks actionparsnip, that solved my question.

Revision history for this message
Javier Resendiz (javier-resendiz) said :
#10
Revision history for this message
Javier Resendiz (javier-resendiz) said :
#11
Revision history for this message
Javier Resendiz (javier-resendiz) said :
#12