[SOLVED] PPA Issue

deb http://debian.linuxmint.com

[SOLVED] PPA Issue

Postby dcihon on Wed Nov 16, 2011 11:47 am

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 dcihon on Wed Nov 16, 2011 12:20 pm, edited 1 time in total.
Kernel 3.2.0-3-amd64 x86_64 (64 bit) Distro Linux Mint Xfce Edition
ATI - Tracking - Testing
User avatar
dcihon
Level 4
Level 4
 
Posts: 276
Joined: Sun Aug 07, 2011 2:15 pm
Location: Florissant, MO USA

Linux Mint is funded by ads and donations.
 

Re: PPA Issue

Postby Aging Technogeek on Wed Nov 16, 2011 12:03 pm

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

Registered Linux User 483387
User avatar
Aging Technogeek
Level 13
Level 13
 
Posts: 4603
Joined: Sun Jan 11, 2009 9:54 am
Location: Right about here

Re: PPA Issue

Postby dcihon on Wed Nov 16, 2011 12:19 pm

OK great lesson learned.
Thank you
Kernel 3.2.0-3-amd64 x86_64 (64 bit) Distro Linux Mint Xfce Edition
ATI - Tracking - Testing
User avatar
dcihon
Level 4
Level 4
 
Posts: 276
Joined: Sun Aug 07, 2011 2:15 pm
Location: Florissant, MO USA

Re: [SOLVED] PPA Issue

Postby xircon on Wed Nov 16, 2011 4:00 pm

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
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK

Re: [SOLVED] PPA Issue

Postby dcihon on Wed Nov 16, 2011 4:52 pm

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
Kernel 3.2.0-3-amd64 x86_64 (64 bit) Distro Linux Mint Xfce Edition
ATI - Tracking - Testing
User avatar
dcihon
Level 4
Level 4
 
Posts: 276
Joined: Sun Aug 07, 2011 2:15 pm
Location: Florissant, MO USA

Re: [SOLVED] PPA Issue

Postby xircon on Wed Nov 16, 2011 5:04 pm

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
Dell Inspiron N5010 / Core I5 / ATI Mobility Radeon HD5400, LMDE Tracking Sid & Cinnamon Desktop
"Ubuntu is an African word meaning 'I can't configure Debian'"
User avatar
xircon
Level 5
Level 5
 
Posts: 775
Joined: Sun Aug 01, 2010 7:59 am
Location: Sheffield, UK


Return to Update Packs Repositories

Who is online

Users browsing this forum: No registered users and 1 guest