[SOLVED] PPA Issue

Archived topics about LMDE 1 and LMDE 2
Locked
dcihon

[SOLVED] PPA Issue

Post by dcihon »

I am getting the following errors when I try to use a PPA:

danc-linux-mint foo2zjs # sudo add-apt-repository ppa:tualatrix/next
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 65, in <module>
if not sp.add_source_from_line(line):
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 630, in add_source_from_line
(deb_line, file) = expand_ppa_line(line.strip(), self.distro.codename)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 47, in expand_ppa_line
sourceslistd = apt_pkg.Config.find_dir("Dir::Etc::sourceparts")
AttributeError: 'module' object has no attribute 'Config'

Is it because I am using Debian or my sources list:

Code: Select all

## SID List
deb http://packages.linuxmint.com/ debian main upstream import backport romeo
deb http://security.debian.org/ testing/updates main contrib non-free #"Debian Security"
deb http://www.debian-multimedia.org sid main non-free #"SID Multimedia"
deb http://http.us.debian.org/debian/ unstable main contrib non-free #"SID"
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Aging Technogeek

Re: PPA Issue

Post by Aging Technogeek »

PPAs are basically an Ubuntu innovation. Most will not work in Debian or Debian based OS like LMDE.
dcihon

Re: PPA Issue

Post by dcihon »

OK great lesson learned.
Thank you
xircon

Re: [SOLVED] PPA Issue

Post by xircon »

That is a Python error. You can use PPAs as long as you do it carefully and manage the breakages, but you may also have to source individual Ubuntu packages to get things to work.

Try this script:

Code: Select all

#!/bin/bash
if [ $# -eq 1 ]
NM=`uname -a && date`
NAME=`echo $NM | md5sum | cut -f1 -d" "`
then
	ppa_name=`echo "$1" | cut -d":" -f2 -s`
	if [ -z "$ppa_name" ]
	then
		echo "PPA name not found"
		echo "Utility to add PPA repositories in your debian machine"
		echo "$0 ppa:user/ppa-name"
	else
		echo "$ppa_name"
		echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu lucid main" >> /etc/apt/sources.list
		apt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txt
		key=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`
		apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $key
		rm -rf /tmp/${NAME}_apt_add_key.txt
	fi
else
	echo "Utility to add PPA repositories in your debian machine"
	echo "$0 ppa:user/ppa-name"
fi
This adds the repository as Lucid by default, but you can edit your sources to change to another release.

:Edit: Usage (say script saved as aar):

Code: Select all

 sudo aar ppa:tiheum/equinox
dcihon

Re: [SOLVED] PPA Issue

Post by dcihon »

Thanks for the script.
I was just reading the posts about all these ppa's and was just seeing what they were about.
Every time I tried to apply one I was getting that error. Now I know why.
The one I was playing with didn't apply to me anyway. It had to do with a file called ubuntu-tweak
xircon

Re: [SOLVED] PPA Issue

Post by xircon »

I use these, used to use loads more but now on Gnome3:

Code: Select all

#Autokey
deb http://ppa.launchpad.net/cdekter/ppa/ubuntu lucid main

#Themes - WebUpd8
deb http://ppa.launchpad.net/webupd8team/themes/ubuntu lucid main

#Mint menu
deb http://ppa.launchpad.net/neelance/awn/ubuntu lucid main

#Cardapio
deb http://ppa.launchpad.net/cardapio-team/unstable/ubuntu lucid main

#Get-iPlayer
deb http://ppa.launchpad.net/jon-hedgerows/get-iplayer/ubuntu lucid main

#deb http://ppa.launchpad.net/webupd8team/gnome3/ubuntu oneiric main

#Scribus
#deb http://debian.scribus.net/debian/ unstable main
#deb http://debian.tagancha.org/debian/ unstable main

#Awoken icon theme
deb http://ppa.launchpad.net/alecive/antigone/ubuntu lucid main

#Faenza/Faince icon theme
deb http://ppa.launchpad.net/tiheum/equinox/ubuntu lucid main
Locked

Return to “LMDE Archive”