Some ubuntu questions (mainly re:mplayer)

Associate
Joined
21 May 2007
Posts
1,464
The big thing stopping me from getting comfy with ubuntu is that I cannot seem to get mplayer to work.

I get this.........
apt-get install mplayer mencoder
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
mencoder: Depends: libmad0 (>= 0.15.1b) but it is not installable
Depends: libmpcdec3 but it is not installable
Depends: libungif4g (>= 4.1.4) but it is not installable
mplayer: Depends: libartsc0 (>= 1.5.0-1) but it is not installable
Depends: libaudio2 but it is not installable
Depends: libmad0 (>= 0.15.1b) but it is not installable
Depends: libmpcdec3 but it is not installable
Depends: libpulse0 but it is not installable
Depends: libungif4g (>= 4.1.4) but it is not installable
Depends: libxvmc1 but it is not installable
E: Broken packages


And this..........
apt-get install w32codecs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package w32codecs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package w32codecs has no installation candidate



This is after adding some other repositories mentioned in an mplayer how-to on the ubuntu fora. (assuming such changes are persistent).


I tried vlc, after learning it had keybinds in ubuntu (the default gentoo config is devoid of these, making it either useless, or a whole load of work).

apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
vlc: Depends: vlc-nox (= 0.8.6.release.c-0ubuntu5) but it is not going to be installed
Depends: libsdl-image1.2 (>= 1.2.5) but it is not installable
Depends: ttf-dejavu but it is not installable
E: Broken packages


In fact, so far the only thing I managed to install was gwhere ( a great little catalogger, that gentoo removed from portage in a fit of pique....it was the only program that came to mind that didn't throw an error).


One other thing (for now), since I changed KVM, ubuntu has redetected my monitor, wrongly, and when I configure it with the little applet, despite saying "keep configuration", it doesn't, and goes back to 800x600 on "plug and play", even after re-enabling the right gfx drivers.
If I just hand hack the xorg.conf, is their auto detect going to b*gger it all up again on next boot?



I'll confess I've not got too deeply into the documentation, but I'm working on the principle that this is Linux for winlusers and that I've got 7 years of Mandrake, Gentoo, Red Hat and LFS under me belt.


Gutsy Gibbon BTW
 
Try this instead:

Code:
sudo aptitude install mplayer

If that fails try:
Code:
sudo apt-get -f install && sudo apt-get install mplayer

mplayers already in gutsy multiverse repo (http://packages.ubuntu.com/gutsy/mplayer); you really don't need to add 3rd party repos - you just need to check you have multiverse enabled in your /etc/apt/sources.list config. If you need to add it then run sudo apt-get update after you have.


To stop your resolution reverting back after boot you can just set your /etc/X11/xorg.conf to immutable. That will stop anything from changing it after you have got it setup like you want it.

Code:
sudo chattr +i /etc/X11/xorg.conf
 
Last edited:
I don't do gui's gui's is for windows :)
(I run mplayer over ssh from my laptop.....big remote control)

Besides.....if smplayer is just a gui, how would I use it when I cannot install mplayer itself?
 
I don't do gui's gui's is for windows :)
(I run mplayer over ssh from my laptop.....big remote control)

Besides.....if smplayer is just a gui, how would I use it when I cannot install mplayer itself?

yeah browsing is great fun in links :p

mplayer will be a dependency of smplayer, so you're right, cant have it without mplayer.

have you enabled the multiverse repo as suggested?

if it's still failing there is always compiling from source but that gets you into dependency hell and is unnecesary in this day and age.
 
OK, I have uncommented each and every single source in sources.list (including universe, multiverse and restricted) and get the same behaviour precisely.

Aptitude says.......
The following packages have unmet dependencies:
mplayer: Depends: libartsc0 (>= 1.5.0-1) which is a virtual package.
Depends: libaudio2 which is a virtual package.
Depends: libmad0 (>= 0.15.1b) which is a virtual package.
Depends: libmpcdec3 which is a virtual package.
Depends: libpulse0 which is a virtual package.
Depends: libungif4g (>= 4.1.4) which is a virtual package.
Depends: libxvmc1 which is a virtual package.
Resolving dependencies...
The following actions will resolve these dependencies:

Keep the following packages at their current version:
mplayer [Not Installed]

Score is -9879

Accept this solution? [Y/n/q/?]


ROFLMAO.....solution is...."don't do it then"





What next?

Not seen dep hell like this since Mandrake, I thought that's what apt-get was for....sorting deps?
 
Well it says they are virtual packages which from some googling suggest are packages automatically downloaded and installed with the core package (in this case mplayer).

have you tried apt-getting the dependencies individually? a pain i know but having met it's dependencies (which the errors are complaining about) it should install.

TBH everytime i've tried Ubuntu i've gone back to Arch after a day, Don't know how Ubuntu is the new users choice, seems to be more broken than any other distro.
 
Did you do what I said?

Code:
sudo apt-get -f install && sudo apt-get install mplayer

Paste your /etc/apt/sources.list as well...
 
Did you do what I said?

Code:
sudo apt-get -f install && sudo apt-get install mplayer

Paste your /etc/apt/sources.list as well...

Yes, and posted the output of it in my previous.
I even did it as root instead of through sudo.
Are you sure your command is right?
it seems to say "install - f nothing, the install mplayer".

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
mplayer: Depends: libartsc0 (>= 1.5.0-1) but it is not installable
Depends: libaudio2 but it is not installable
Depends: libmad0 (>= 0.15.1b) but it is not installable
Depends: libmpcdec3 but it is not installable
Depends: libpulse0 but it is not installable
Depends: libungif4g (>= 4.1.4) but it is not installable
Depends: libxvmc1 but it is not installable
E: Broken packages


To be honest, if apt doesn't do deps, I'll stick with gentoo, I can't face going back to 2001 and fighting dep hell again.
An os that doesn't support ANY media player isn't much use.

Basically, I cannot install anything at all.......

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner

# Line commented out by installer because it failed to verify:
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
deb http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
# Line commented out by installer because it failed to verify:
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse





I assume all the "failed to verify" guff is just because the stupid, moronic, installer set my network up as IPV6 to start with....not very helpful.
 
Your sources.list is totally screwed up. I really don't know how you managed to get 100 repository lines in there in the first place. Bare in mind that if you have repos with different versions (which I guess you have) then it will totally screw things up. Try this as your sources.list, then run sudo apt-get update. You have totally broke the deps somewhere.

sudo apt-get -f install < tries to fix dependences, sometimes works and sometimes not. Depends what kinda state your system is in.

Code:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://gb.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://gb.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
# deb http://archive.canonical.com/ubuntu gutsy partner
# deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
 
Last edited:
(ssssssssh)
It seems to be working ;)


Thanks.

I should point out that the sources file wasn't that mangled until yesterday, it was only then after loads of errors that I uncommented all the other repos.



OK.....mplayer and mencoder installer WOOT.

But, still can't use them because.............

when I try to install w32codecs

root@hal9000:/# apt-get install w32codecs
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package w32codecs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package w32codecs has no installation candidate


It's the right package name cos I checked when I was trying all this originally.

Any ideas?
Or can anyone tell me where they are stored and I'll just copy them from gentoo.


So far so good though, I'm most grateful.
 
Code:
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list && wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update && sudo apt-get install w32codecs libdvdcss2
 
Last edited:
That's the win right there :D

Cheers.

It's also totally different from what I did originally, which was follow a how-to off their forums. Then again, if my sources were so messy, it may well be that the how-to was right after all. Pretty sure it got that way, as I said, because it switched the network on in IPv6 mode, so couldn't verify ANY sources....probably means the sources I added were the only ones working originally.


I take it I just rm the files created by the wget commands to remove that "risky" source?


BTW, all installed but as yet untested, as it was done via chroot from gentoo.
Off to work for the night soon, and don't want to get into messing before I go so I'm not kicking and screaming when I have to leave.
 
Back
Top Bottom