You are not logged in.
Using "sudo add-apt-repository ppa:<name>" to add a ppa repo and I get this error:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Debian/beowulf
So .. do I need to edit somwhere in:
/usr/share/python-apt/templates
somehow to get the right sources, what do I do?
Last edited by jpark (2021-03-18 15:29:36)
Offline
what do I do?
Don't add PPAs to Devuan, it is not binary-compatible with Ubuntu so they can break your system.
Follow this guide if you really need something from a PPA: https://wiki.debian.org/CreatePackageFromPPA
Brianna Ghey — Rest In Power
Offline
Devuan doesn't use ppa's, it's an Ubuntu thing. Devuan is not based on Ubuntu (and never will be) so you'd need to add the repository to /etc/apt/sources.list manually.
Offline
jpark wrote:what do I do?
Follow this guide if you really need something from a PPA: https://wiki.debian.org/CreatePackageFromPPA
I can't follow that guide because they add a ppa...
sudo add-apt-repository --enable-source ppa:pogo-dev/stable
And then I get the same error.
How would a person manually add to sources.list, when I don't know the url..
Offline
BTW I'm trying to install latest version of obs-studio
https://obsproject.com/wiki/install-ins … stallation
I know I can install from package, but I wanted latest version.
Offline
Is it possible or safe to manually add the obs-studio source to sources.list??
Provided I can find out how / which url...
Or should I not do that?
Offline
Just use Devuan repos until you understand what you are doing. Trying to make it something that it is not . . . well . . . what's the point of that exactly?
Offline
I can't follow that guide because they add a ppa...
D'oh! Sorry...
Add the (source) repository manually:
sudo tee /etc/apt/sources.list.d/obs.list <<<"deb-src deb-src http://ppa.launchpad.net/obsproject/obs-studio/ubuntu bionic main"
Then download and add the key:
gpg --keyserver keyserver.ubuntu.com --recv bc7345f522079769f5bbe987efc71127f425e228
gpg -a --export EFC71127F425E228 | sudo apt-key add -
And finally update the database and build the package:
sudo apt update
apt source --build obs-studio
EDIT: or backport the version in testing/unstable by following https://wiki.debian.org/SimpleBackportCreation
EDIT2: no, it is not "safe" to add the binary package repository. Use the source, Luke.
Last edited by Head_on_a_Stick (2021-03-18 16:50:31)
Brianna Ghey — Rest In Power
Offline
Just use Devuan repos until you understand what you are doing. Trying to make it something that it is not . . . well . . . what's the point of that exactly?
So latest version of obs-studio, from obs site is not compatible?
obs-studio package in Devaun repos has been modified to work?
Just curious... before I attempt to do Head_on_a_Stick's instructions...
Or has someone else tried it already, it works?
Last edited by jpark (2021-03-18 16:52:58)
Offline
The version from OBS has been compiled in an Ubuntu system so it is not compatible with Devuan. Building a version in your Devuan system from the same source will make it compatible.
Brianna Ghey — Rest In Power
Offline
The version from OBS has been compiled in an Ubuntu system so it is not compatible with Devuan. Building a version in your Devuan system from the same source will make it compatible.
Ok, thank you... so your instructions should work I'm guessing, right?
Last edited by jpark (2021-03-18 16:58:13)
Offline
Only one way to find out
I haven't tested my method but we can troubleshoot it here from any errors if needed. Takes a bit longer but it makes the thread a bit more useful for others to see the process.
Brianna Ghey — Rest In Power
Offline
Well it failed. Didn't have the dependencies.
First failure was this:
dpkg-checkbuilddeps: error: Unmet build dependencies: cdbs cmake libpulse-dev libv4l-dev libx264-dev libxcb-xinerama0-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libswresample-dev libavdevice-dev libavfilter-dev libfdk-aac-dev libjack-jackd2-dev libspeexdsp-dev libvlc-dev libasound2-dev libluajit-5.1-dev swig libmbedtls-dev libjansson-dev libnss3-dev libatspi2.0-dev libatk-bridge2.0-dev libgtkglext1-dev linux-generic
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
E: Build command 'cd obs-studio-26.1.1 && dpkg-buildpackage -b -uc' failed.
So I did this, and didn't work either:
sudo apt build-dep obs-studio
Reading package lists... Done
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:
builddeps:obs-studio : Depends: linux-generic but it is not installable
E: Unable to correct problems, you have held broken packages.
Last edited by jpark (2021-03-18 19:32:04)
Offline
Edit debian/control and change the linux-generic dependency to linux-image-amd64.
EDIT: or just backport the testing/unstable package, as I suggested earlier. That will probably be simpler.
Last edited by Head_on_a_Stick (2021-03-18 19:32:00)
Brianna Ghey — Rest In Power
Offline
EDIT: or just backport the testing/unstable package, as I suggested earlier. That will probably be simpler.
Doing the backports steps I got this:
sudo mk-build-deps --install --remove
mk-build-deps: Unable to install obs-studio-build-deps at /usr/bin/mk-build-deps line 416.
mk-build-deps: Unable to install all build-dep packages
Is that the same with the linux-generic problem?
Edit: I looked in debian/control file... but don't see linux-generic listed in there.
Last edited by jpark (2021-03-18 20:00:07)
Offline
Did you install the build-essential package? This creates a full build environment by pulling in all essential packages. (by itself it installs nothing, but uses the dependency resolution from apt to get what it needs installed)
Offline
Did you install the build-essential package? This creates a full build environment by pulling in all essential packages. (by itself it installs nothing, but uses the dependency resolution from apt to get what it needs installed)
Yes installed that. What is strange is the backport method -error doesn't specify which dependency.
So I also looked in the control file, but I also don't see linux-generic listed in there .. from the backport source method
Last edited by jpark (2021-03-18 20:02:59)
Offline
Doing the backports steps I got this:
sudo mk-build-deps --install --remove mk-build-deps: Unable to install obs-studio-build-deps at /usr/bin/mk-build-deps line 416. mk-build-deps: Unable to install all build-dep packages
Is that the full error message?
I think you need the debhelper package from the beowulf-backports repository.
Brianna Ghey — Rest In Power
Offline
debhelper is already the newest version (12.1.1)
Well it showed more in the error, but it said it already fixed it.. but ended with that error (that I posted).
I unfortunately closed that terminal.
EDIT: here is what it fixed...
Correcting dependencies...Starting pkgProblemResolver with broken count: 1
Starting 2 pkgProblemResolver with broken count: 1
Investigating (0) obs-studio-build-deps:amd64 < 26.1.2+dfsg1-1 @iU mK Nb Ib >
Broken obs-studio-build-deps:amd64 Depends on debhelper-compat:amd64 < none @un H > (= 13)
Considering debhelper:amd64 13 as a solution to obs-studio-build-deps:amd64 -2
Removing obs-studio-build-deps:amd64 rather than change debhelper-compat:amd64
Done
Done
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
But still ended with previous error.
Last edited by jpark (2021-03-18 20:42:38)
Offline
Yeah, it needs the backported debhelper version.
But I'm trying to build a version in my openSUSE Build Service repository and it needs dwz as well, which needs a newer meson version. Oh dear. This might not work, I can't seem to build a newer meson, not sure why.
I'll try again tomorrow when I'm actually booted into a Debian system.
Brianna Ghey — Rest In Power
Offline
There is this, in the folder though...
obs-studio-build-deps_26.1.2+dfsg1-1_all.deb
Maybe something can be fixed in there?
Edit... how do I get scour.pm into "@INC"
fakeroot debian/rules binary
dh binary
dh: unable to load addon scour: Can't locate Debian/Debhelper/Sequence/scour.pm in @INC (you may need to install the Debian::Debhelper::Sequence::scour module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/x86_64-linux-gnu/perl5/5.28 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at (eval 17) line 1.
BEGIN failed--compilation aborted at (eval 17) line 1.
Edit; when I do apt-file search ... i get:
scour: /usr/share/perl5/Debian/Debhelper/Sequence/scour.pm
Not sure, some relevant information might be here:
https://bugs.debian.org/cgi-bin/bugrepo … bug=886203
This is actually a bug in scour, where the scour binary and debhelper
addon moved from python-scour to python3-scour.Neither is the right place.
scour should go into an own binary package of the same name,
and the debhelper addon could also go there.For properly handling stretch->buster upgrades, python-scour should
depend on the new scour package.
Last edited by jpark (2021-03-18 22:25:13)
Offline
Not sure what you've done to encounter that error, sorry.
I'm just waiting for a new mono version to build in my repository, which might make the meson package build, which will get the backported obs-studio package built. I hope. I'll post back when it finishes.
But I really don't think this is going to work because the installation dependencies don't seem to be satisfiable. Sorry to waste your time with this, I should have checked more carefully yesterday.
Brianna Ghey — Rest In Power
Offline
Yeah, it needs the backported debhelper version.
How do I use that debhelper instead of what is already installed?
Offline
Just install the debhelper package from the beowulf-backports repository, instructions here (s/debian/devuan/g):
https://backports.debian.org/Instructions/
But I really don't think this will work.
Why do you think you need the newer obs-studio version anyway?
Brianna Ghey — Rest In Power
Offline
Well, its more of wanting to get it to work, and learn in case I ever have to do it with another package/program in the future.
Last edited by jpark (2021-03-20 02:24:13)
Offline