LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   0AD on Debian Sid. Can I use Ubuntu "PPA"? (https://www.linuxquestions.org/questions/debian-26/0ad-on-debian-sid-can-i-use-ubuntu-ppa-938615/)

273 04-07-2012 09:20 AM

0AD on Debian Sid. Can I use Ubuntu "PPA"?
 
I would like to install 0AD but, out of laziness and a liking for automatic updates, I would prefer to use a repository rather than compile from source.
So, my question is: Can I just add one of the Ubuntu PPAs to my sources.list and install from there? If I do which one do I add what problems am I likely to encounter?
I suspect that it will either not install due to dependencies or install and not work if something is missing -- is it likely to cause any other problems? Has anyone installed this game on Debian and, if so, how did you do it?

jim_p 04-07-2012 12:26 PM

If you know how to make a package from source, 0ad is on the mentors.debian.net repo, but it is a source repo :(

I would not risk installing from an ubuntu repo. The worst case scenario is that it's dependencies do not simply match
Code:

Package: 0ad
.
.
.
Depends: 0ad-data (>= 0.0.0+r10288), gamin, python, libboost-signals1.46.1 (>= 1.46.1-1), libboost-system1.46.1 (>= 1.46.1-1), libc6 (>= 2.11), libcurl3 (>= 7.16.2-1), libenet1a, libgamin0 | libfam0, libgcc1 (>= 1:4.1.1), libgl1-mesa-glx | libgl1, libilmbase6 (>= 1.0.1), libjpeg62 (>= 6b1), libopenal1, libopenexr6 (>= 1.6.1), libpng12-0 (>= 1.2.13-4), libsdl1.2debian (>= 1.2.10-1), libstdc++6 (>= 4.6), libtiff4, libvorbisfile3 (>= 1.1.2), libwxbase2.8-0 (>= 2.8.11.0), libwxgtk2.8-0 (>= 2.8.11.0), libx11-6, libxml2 (>= 2.7.4), zlib1g (>= 1:1.2.0)


Hungry ghost 04-07-2012 12:55 PM

I don't think it's a good idea installing packages from an Ubuntu repo (from what I've read, you can break your system). In case you have the sources, you can follow these steps in order to compile them and build a deb package you can easily install and uninstall.

Regards.

273 04-07-2012 01:02 PM

I forgot to mention that the PPAs I am referring to are for the game only, so I'm not likely to pull any other packages down from them. I do know that using Ubuntu's own repositories is a very bad idea, but is it so bad using a third party repo for a single game?
That said, thanks for the instructions odiseo77 I'll take a look.

craigevil 04-07-2012 01:43 PM

It might not break anything now but in the long run it will definitely cause problems.

Stick with actual Debian packages or build it from source.

273 04-07-2012 01:48 PM

Thanks for the input, lookslike I should lookat building it.
Will mark this as solved, but if anyone has anything more to say I'll still be reading.

craigevil 04-07-2012 03:05 PM

Quote:

Originally Posted by 273 (Post 4647278)
Thanks for the input, lookslike I should lookat building it.
Will mark this as solved, but if anyone has anything more to say I'll still be reading.

This should help:
Debian User Forums • View topic - HowTo Build a Package from Source the Smart Way - http://forums.debian.net/viewtopic.php?f=16&t=38976

273 04-07-2012 03:33 PM

I've looked at mentors.debian.net but I don't see details of how to add the repo?

craigevil 04-07-2012 04:14 PM

Quote:

Originally Posted by 273 (Post 4647325)
I've looked at mentors.debian.net but I don't see details of how to add the repo?

it is just a source repo add deb-src http://mentors.debian.net/debian unstable
to your sources.list

su
nano /etc/apt/sources.list
paste the repo ctrl+shift+v
ctrl+o write to file
ctrl+x save and exit
apt-get update

273 04-07-2012 04:29 PM

That doesn't seem to work though. The web page displays an error rather than the usual directory list and when I try to update after adding that I get:
Code:

E: Malformed line 8 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

I still have rot enabled due to a strange installer but that's another thing entirely.

k3lt01 04-07-2012 04:56 PM

My :twocents: worth.

I have added 1 Launchpad PPA to my Debian installs. It is Jeremy Visser's PPA (it is only appropriate to Australians). It works fine on my Debian systems and actually I will state that it works better on them than it does my 1 Ubuntu system because my Debian systems don't have a heap of Ubuntu bloat on them.

The moral to this story is yes you can do it, yes it may work and me be even better than for Ubuntu but you take the onus on yourself to make sure it remains compatible with your Debian system.

273 04-07-2012 05:01 PM

Then my question is which PPA is appropriate to add to my Sid sources.list?
https://launchpad.net/~wfg/+archive/0ad.dev
I'm guessing 11.10 as using an older version is more likely to work? I mean rather than using the one for 12.04 and finding Canonical use a slightly newer lib.

k3lt01 04-07-2012 06:14 PM

Sid is fairly up to date anyway so I would add either the 12.04 or, for possibly better stability, 11.10.

273 04-07-2012 06:40 PM

Well, I installed the 11.10 (Oneric?) one and will see how it goes.
With 12.04 I got:
Code:

The following packages have unmet dependencies:
 0ad : Depends: libc6 (>= 2.15) but 2.13-27 is to be installed
      Depends: gamin but it is not going to be installed

It seems that it is true Sid is more stable, or proven at least, than any of the Ubuntu's.

273 05-05-2012 03:37 PM

Update, in case anyone finds this. 0AD is now in the Debian Repos (well, Sid and Wheezy that I checked at least) so no need for PPAs.


All times are GMT -5. The time now is 06:43 PM.