Installing Panda3D on Ubuntu 11.10 - dependency issues

Hi

I’m trying to install Panda3D on Ubuntu 11.10, but I keep on running into dependency problems that I can’t resolve.
Here’s the output of trying to run panda3d1.8_1.8.0*.deb

sudo dpkg -i panda3d1.8_1.8.0+cvs20120125~oneiric104_i386.deb
Selecting previously deselected package panda3d1.8:i386.
(Reading database … 252361 files and directories currently installed.)
Unpacking panda3d1.8:i386 (from panda3d1.8_1.8.0+cvs20120125~oneiric104_i386.deb) …
dpkg: dependency problems prevent configuration of panda3d1.8:i386:
panda3d1.8:i386 depends on libavcodec53 (>= 4:0.7-1) | libavcodec-extra-53 (>= 4:0.7-1); however:
Package libavcodec53:i386 is not installed.
panda3d1.8:i386 depends on libavformat53 (>= 4:0.7-1) | libavformat-extra-53 (>= 4:0.7-1); however:
panda3d1.8:i386 depends on libavutil51 (>= 4:0.7-1) | libavutil-extra-51 (>= 4:0.7-1); however:
panda3d1.8:i386 depends on libhighgui2.1; however:
panda3d1.8:i386 depends on libswscale2 (>= 4:0.7-1) | libswscale-extra-2 (>= 4:0.7-1); however:
panda3d1.8:i386 depends on libxxf86dga1; however:
panda3d1.8:i386 depends on python2.7; however:
panda3d1.8:i386 depends on python-pmw; however:
panda3d1.8:i386 depends on nvidia-cg-toolkit; however:
dpkg: error processing panda3d1.8:i386 (–install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils …
Processing triggers for gnome-menus …
Processing triggers for bamfdaemon …
Rebuilding /usr/share/applications/bamf.index…
Processing triggers for shared-mime-info …
Errors were encountered while processing:
panda3d1.8:i386

It seems to me I have libavcodec53 and all the rest installed, so I don’t understand what’s the problem. I tried purging and reinstalling libs with apt-get install, but to no avail.
Same issue persists if I try any other available panda3d1.8_1.8.0*.deb, or 1.7.2 version.

Similar problem was described in [ubuntu 11.10 install fail) where it was marked as a problem with Panda3d package, not user’s PC.
Any ideas on what’s really going on any how to resolve it would be greatly appreciated.

Hi, welcome to the forums!

Many of the packages that Panda3D depends on are not in the “main” component of the Ubuntu repository, but in the other components, such as “universe”. I advise enabling these extra components in your package manager or system software sources settings (I haven’t used Ubuntu in a while, so I don’t know where the setting can be found nowadays), rebuilding the package index (using “sudo apt-get update”), and trying again.

I have no idea if this is indeed the issue, but it’d be my first guess.

Can you also show the output of these commands, for the record:

lsb_release -a
dpkg --print-architecture

Hi rdb, thanks for your answer.

I already had universal repositories enabled, and all the software is up-to-date.

The output of lsb_release -a is:

LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:qt4-3.1-amd64:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 11.10
Release: 11.10
Codename: oneiric

The output of dpkg --print-architecture is: amd64

The machine has Inter Core i7 processors, though from what I read about dpkg --print-architecture it’s nothing strange to see ‘amd64’ as an output for 64 bit Intel processors.

You’re on an amd64 system, but you’re trying to install the i386 version of Panda3D. That’s the problem.

So I was misunderstanding the meaning of i386 and amd64 - I thought the former refers to Intel processors, and latter to AMD’s, rather than 32 bit and 64 bit architectures respectively. Nonetheless, the wrong package is not the culprit, I tried going for the panda3d1.8_1.8.0+cvs20120130~oneiric109_amd64.deb
but the output was very much the same, or:

dpkg: dependency problems prevent configuration of panda3d1.8:
panda3d1.8 depends on libavcodec53 (>= 4:0.7-1) | libavcodec-extra-53 (>= 4:0.7-1); however:
Package libavcodec53 is not installed.
Package libavcodec-extra-53 is not installed.
panda3d1.8 depends on libavformat53 (>= 4:0.7-1) | libavformat-extra-53 (>= 4:0.7-1); however:
Package libavformat53 is not installed.
Package libavformat-extra-53 is not installed.
panda3d1.8 depends on libavutil51 (>= 4:0.7-1) | libavutil-extra-51 (>= 4:0.7-1); however:
Package libavutil51 is not installed.
Package libavutil-extra-51 is not installed.
panda3d1.8 depends on libhighgui2.1; however:
Package libhighgui2.1 is not installed.
panda3d1.8 depends on libopenal1; however:
Package libopenal1 is not installed.
panda3d1.8 depends on libswscale2 (>= 4:0.7-1) | libswscale-extra-2 (>= 4:0.7-1); however:
Package libswscale2 is not installed.
Package libswscale-extra-2 is not installed.
dpkg: error processing panda3d1.8 (–install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils …
Processing triggers for gnome-menus …
Processing triggers for bamfdaemon …
Rebuilding /usr/share/applications/bamf.index…
Processing triggers for shared-mime-info …
Errors were encountered while processing:
panda3d1.8

Really confused here :confused:

In the end a combination of purge, apt-get -f install, autoclean, autoremove, pdkg --force and similar commands did the trick. Not sure what exact combination was necessary, as I applied loads of them a few times just trying until they worked.