[SOLVED] libmad errors when running Stepmania on 64-bit Linux (Ubuntu 18.04)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
libmad errors when running Stepmania on 64-bit Linux (Ubuntu 18.04)
I am a first-time Linux user trying to run the Stepmania 5.0.12 program (https://www.stepmania.com/download/) on a Beelink S1 computer running Ubuntu 18.04. Stepmania is very easy to load on earlier 32-bit versions of Linux, but when I run it on 18.04, I get libmad.so.0 errors. It installed fine, but I get error when I run it. I even tried building my own executable from source using git commands, but again it failed with libmad errors.
The easiest thing would be to run an older version of Linux, but I think (not certain because I am a newb) that I need to run a 64-bit OS due to the Apollo Lake processor in my Beelink S1 computer.
My questions are:
1. Is it possible to fix the libmad.so.0 errors when running Stepmania on Ubuntu 18.04 Linux?
or
2. Is it possible to load an older Linux on an Apollo Lake CPU machine that will run Stepmania without error? I tried loading the 32-bit version of Ubuntu 17.10 and also 16.04, and although the 32-bit boot disk showed up in the boot menu, nothing happens when I try to boot with a 32-bit version, so I went back to 18.04, which works fine except for Stepmania.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by peterp
I am a first-time Linux user trying to run the Stepmania 5.0.12 program (https://www.stepmania.com/download/) on a Beelink S1 computer running Ubuntu 18.04. Stepmania is very easy to load on earlier 32-bit versions of Linux, but when I run it on 18.04, I get libmad.so.0 errors. It installed fine, but I get error when I run it. I even tried building my own executable from source using git commands, but again it failed with libmad errors.
The easiest thing would be to run an older version of Linux, but I think (not certain because I am a newb) that I need to run a 64-bit OS due to the Apollo Lake processor in my Beelink S1 computer.
My questions are:
1. Is it possible to fix the libmad.so.0 errors when running Stepmania on Ubuntu 18.04 Linux?
...
You should be installing software on Linux though your package manager instead of downloading it from a website - that's what you would normally do in Windows. Linux is NOT Windows.
You should be installing software on Linux though your package manager instead of downloading it from a website - that's what you would normally do in Windows. Linux is NOT Windows.
It seems like a package is available for Ubuntu to install it. Try that instead.
That should install all of the dependencies for it.
Thanks -- this is great info. I get the following errors when I run it though related to dependencies:
ubuntu@ubuntu:~$ sudo apt update && sudo apt install stepmania
Ign:1 cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic InRelease
Hit:2 cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic Release
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://ppa.launchpad.net/ubuntuhandb...epmania/ubuntu bionic InRelease
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
215 packages can be upgraded. Run 'apt list --upgradable' to see them.
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:
stepmania : Depends: libavcodec57 (>= 7:3.4.1) but it is not installable or
libavcodec-extra57 (>= 7:3.4.1) but it is not installable
Depends: libavformat57 (>= 7:3.4.1) but it is not installable
Depends: libavutil55 (>= 7:3.4.1) but it is not installable
Depends: libmad0 (>= 0.15.1b-3) but it is not installable
Depends: libswscale4 (>= 7:3.4.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
ubuntu@ubuntu:~$
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
While you should make a backup of your system in case things do go south;
Your output does state that you have 215 packages that can be upgraded. You should try this first and then make sure there are no problems with your system afterwards. I'd suggest once you have run the command below, and then after that if all goes well (you don't see any errors happen while the below command is running and it completes successfully), you then restart your system to verify that the are no issues.
Code:
apt-get upgrade
Then try re-running the "sudo apt update && sudo apt install stepmania" command. And hopefully all goes well.
Try that to see if this resolves the dependencies for you.
While you should make a backup of your system in case things do go south;
Your output does state that you have 215 packages that can be upgraded. You should try this first and then make sure there are no problems with your system afterwards. I'd suggest once you have run the command below, and then after that if all goes well (you don't see any errors happen while the below command is running and it completes successfully), you then restart your system to verify that the are no issues.
Code:
apt-get upgrade
Then try re-running the "sudo apt update && sudo apt install stepmania" command. And hopefully all goes well.
Try that to see if this resolves the dependencies for you.
Thank you. That seemed to help a lot, but it seems like a large number of them were upgraded, but it is still showing 3 that need to be upgraded. The output of several commands are shown below:
ubuntu@ubuntu:~$ sudo apt update && sudo apt install stepmania
Ign:1 cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic InRelease
Hit:2 cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic Release
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://ppa.launchpad.net/ubuntuhandb...epmania/ubuntu bionic InRelease
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [162 kB]
Fetched 245 kB in 1s (184 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
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:
stepmania : Depends: libavcodec57 (>= 7:3.4.1) but it is not installable or
libavcodec-extra57 (>= 7:3.4.1) but it is not installable
Depends: libavformat57 (>= 7:3.4.1) but it is not installable
Depends: libavutil55 (>= 7:3.4.1) but it is not installable
Depends: libmad0 (>= 0.15.1b-3) but it is not installable
Depends: libswscale4 (>= 7:3.4.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
ubuntu@ubuntu:~$ apt-get upgrade
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ubuntu@ubuntu:~$ sudo !!
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
ubuntu@ubuntu:~$ apt list --upgradable
Listing... Done
linux-generic/bionic-security,bionic-updates 4.15.0.23.25 amd64 [upgradable from: 4.15.0.20.23]
linux-headers-generic/bionic-security,bionic-updates 4.15.0.23.25 amd64 [upgradable from: 4.15.0.20.23]
linux-image-generic/bionic-security,bionic-updates 4.15.0.23.25 amd64 [upgradable from: 4.15.0.20.23]
ubuntu@ubuntu:~$
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Your output is a little confusing and I didn't help by forgetting to put "sudo" in front of the "apt-get upgrade" command - sorry about that. So that should have read "sudo apt-get upgrade", but I think you figured that out lucky, I think.
Just so you know; the "sudo" command gives you root user rights for what-ever command you put after it - it's needed for doing stuff to installed packages. A normal user in Linux does not have system-wide permissions to modify things - they only have permission to their own user account.
Can you also use CODE tags so it's a bit easier to read the output from commands - see my signature below if you're not sure how to do that.
...and try the commands listed about halfway down that page - to save me typing it all out here.
Those last three packages are for the Linux kernel - I wouldn't worry about upgrading them just yet, they shouldn't matter at this point (the 3 packages listed by the "apt list --upgradable" command in your last post above).
Last edited by jsbjsb001; 06-25-2018 at 03:55 PM.
Reason: additions
Your output is a little confusing and I didn't help by forgetting to put "sudo" in front of the "apt-get upgrade" command - sorry about that. So that should have read "sudo apt-get upgrade", but I think you figured that out lucky, I think.
Just so you know; the "sudo" command gives you root user rights for what-ever command you put after it - it's needed for doing stuff to installed packages. A normal user in Linux does not have system-wide permissions to modify things - they only have permission to their own user account.
Can you also use CODE tags so it's a bit easier to read the output from commands - see my signature below if you're not sure how to do that.
...and try the commands listed about halfway down that page - to save me typing it all out here.
Those last three packages are for the Linux kernel - I wouldn't worry about upgrading them just yet, they shouldn't matter at this point (the 3 packages listed by the "apt list --upgradable" command in your last post above).
Thanks. I tried the commands, but the last one gives an error of conflicting commands. I do think that the "libmad" is important because I think that is related to processing the audio files.
Code:
sudo apt update && sudo apt install stepmania
Ign:1 cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic InRelease
Hit:2 cdrom://Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426) bionic Release
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Hit:5 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:6 http://ppa.launchpad.net/ubuntuhandb...epmania/ubuntu bionic InRelease
Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [83.2 kB]
Fetched 166 kB in 1s (170 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
3 packages can be upgraded. Run 'apt list --upgradable' to see them.
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:
stepmania : Depends: libavcodec57 (>= 7:3.4.1) but it is not installable or
libavcodec-extra57 (>= 7:3.4.1) but it is not installable
Depends: libavformat57 (>= 7:3.4.1) but it is not installable
Depends: libavutil55 (>= 7:3.4.1) but it is not installable
Depends: libmad0 (>= 0.15.1b-3) but it is not installable
Depends: libswscale4 (>= 7:3.4.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
Code:
ubuntu@ubuntu:~$ sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
dpkg: error: conflicting actions -f (--field) and -r (--remove)
Type dpkg --help for help about installing and deinstalling packages[*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked[*] produce a lot of output - pipe it through 'less' or 'more' !
[c
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Code:
ubuntu@ubuntu:~$ sudo apt install stepmania
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:
stepmania : Depends: libavcodec57 (>= 7:3.4.1) but it is not installable or
libavcodec-extra57 (>= 7:3.4.1) but it is not installable
Depends: libavformat57 (>= 7:3.4.1) but it is not installable
Depends: libavutil55 (>= 7:3.4.1) but it is not installable
Depends: libmad0 (>= 0.15.1b-3) but it is not installable
Depends: libswscale4 (>= 7:3.4.1) but it is not installable
E: Unable to correct problems, you have held broken packages.
ubuntu@ubuntu:~$
(If it complains about not being able to find the packages above, add the first one or two numbers in their package names to the end of the above package name, like for example "libavformat57", etc - refer to your outputs above.)
then:
Code:
sudo apt-get install stepmania
Hopefully that finally does it!
Last edited by jsbjsb001; 06-25-2018 at 05:16 PM.
Reason: forgot "sudo" for first command :doh: again!
(If it complains about not being able to find the packages above, add the first one or two numbers in their package names to the end of the above package name, like for example "libavformat57", etc - refer to your outputs above.)
then:
Code:
sudo apt-get install stepmania
Hopefully that finally does it!
This is what I get when I spell it out with exact names:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libavcodec57 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
Package libavformat57 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
Package libavutil55 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
Package libmad0 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
Package libswscale4 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 'libavcodec57' has no installation candidate
E: Package 'libavformat57' has no installation candidate
E: Package 'libavutil55' has no installation candidate
E: Package 'libmad0' has no installation candidate
E: Package 'libswscale4' has no installation candidate
ubuntu@ubuntu:~$
Sorry for not including it earlier (I had to leave for a few minutes and rushed the response out), but I did try first with the generalized names and it looks like only one was recognized:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libavcodec57' for glob 'libavcodec*'
Note, selecting 'libavcodec-extra57' for glob 'libavcodec*'
E: Unable to locate package libavformat
E: Unable to locate package libavutil
E: Unable to locate package libmad
E: Unable to locate package libswscale
Code:
ubuntu@ubuntu:~$ sudo apt-get install libavcodec*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libavcodec57' for glob 'libavcodec*'
Note, selecting 'libavcodec-extra57' for glob 'libavcodec*'
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Code:
ubuntu@ubuntu:~$ sudo apt-get install libavformat
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libavformat
Code:
ubuntu@ubuntu:~$ sudo apt-get install libavutil
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libavutil
Code:
ubuntu@ubuntu:~$ sudo apt-get install libmad
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmad
Code:
ubuntu@ubuntu:~$ sudo apt-get install libswscale
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libswscale
ubuntu@ubuntu:~$
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
I would open 'synaptic' to try to straighten things out. First hit 'reload'. There's a filter for broken packages. Just remove those for now. Then search for stepmania and select it. Try the install that way.
Although I don't really know what I'm doing, all the steps seem to work until I try to install the AMD64.deb file. Then the installer shows a file size of 3.3Mb (so it does see the file), but when I click "install", it only runs for about a tenth of a second and very briefly flashes the orange install progress bar to 100%, but nothing is installed and that button on the installer goes back to saying "install" again rather than showing "remove" as it would if it had actually installed. If anybody has any advice on getting the install to work, I'd appreciate that.
If this different approach above doesn't work, I will go back to where I left off and try synaptic. I'm running on Ubuntu on a USB drive for now, so I can go back to a clean slate every time I reboot. Hoping to kick Windows to the curb, but no joy in Mudville so far .
Below shows the excerpts of what I'm using from the link above:
Quote:
Originally Posted by Excerpt_From_Link_Above
Built packages
stepmania Advanced rhythm game
stepmania-data Advanced rhythm game - data files
stepmania-doc Advanced rhythm game - doc files
Package files
stepmania-data_5.1.0+dfsg-beta1+3ubuntu18.04_all.deb (46.4 MiB)
stepmania-doc_5.1.0+dfsg-beta1+3ubuntu18.04_all.deb (654.8 KiB)
stepmania_5.1.0+dfsg-beta1+3ubuntu18.04.debian.tar.gz (6.3 KiB)
stepmania_5.1.0+dfsg-beta1+3ubuntu18.04.dsc (2.0 KiB)
stepmania_5.1.0+dfsg-beta1+3ubuntu18.04_amd64.deb (3.2 MiB) <-- This is the one that doesn't install
stepmania_5.1.0+dfsg-beta1+3ubuntu18.04_i386.deb (3.4 MiB)
stepmania_5.1.0+dfsg.orig.tar.gz (178.0 MiB)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.