trouble adding ppas in lmde(SOLVED)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

trouble adding ppas in lmde(SOLVED)

Postby podagee on Thu Dec 22, 2011 9:19 pm

tried adding ppa's and i keep getting this

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.6/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.6/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'

a little help here please
Last edited by podagee on Thu Dec 22, 2011 9:31 pm, edited 1 time in total.
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Compaq/HP Preasario CQ62
intel celeron 900 2.20ghz
250gb hdd
Mint 13 Cinnamon x64 Dual-Booted With Windows 8 PRO w/ MC x64
User avatar
podagee
Level 5
Level 5
 
Posts: 796
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Linux Mint is funded by ads and donations.
 

Re: trouble adding ppas in lmde

Postby podagee on Thu Dec 22, 2011 9:29 pm

also when trying to add them into software sources software manager just freezes.what is relly going on here.
this is possibly the worst distribution of mint ever released.all kinds of problems.have to install the kernel 686 pae,compiz doesnt act right,really really slow,all kinds of things you have to do to actually get it running.this is crazy.
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Compaq/HP Preasario CQ62
intel celeron 900 2.20ghz
250gb hdd
Mint 13 Cinnamon x64 Dual-Booted With Windows 8 PRO w/ MC x64
User avatar
podagee
Level 5
Level 5
 
Posts: 796
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Re: trouble adding ppas in lmde(SOLVED)

Postby podagee on Thu Dec 22, 2011 10:44 pm

sorry ive read that only ubuntu uses launchpad so does mint.debian uses deb.(hello to self)
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Compaq/HP Preasario CQ62
intel celeron 900 2.20ghz
250gb hdd
Mint 13 Cinnamon x64 Dual-Booted With Windows 8 PRO w/ MC x64
User avatar
podagee
Level 5
Level 5
 
Posts: 796
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Re: trouble adding ppas in lmde(SOLVED)

Postby widget on Fri Dec 23, 2011 7:05 pm

Launchpad is owned by Canonical.

It is possible to add ppas to Debian I would not recommend it. I believe that if you check your /etc/apt/sources.list that you will find there is at least one ppa already in there.

If you add the one you are wanting using the same syntax there should be no problem. You will have to run "apt-get update" as root to use it.

You will receive packages in the form of a .deb file. This is the package management format for all Debian and Debian descended OS's (like Ubuntu and Mint).

Myself, I would recommend installing Debian testing (Wheezy) and using it.
Dell XPS 420 Core2 Quad Q 6600, audigy5.1, Radeon HD 6450 - currently 4 320Gb HDD, Debian Squeeze for secure use, Debian testing for daily use, Debian Sid for fun.
widget
Level 3
Level 3
 
Posts: 166
Joined: Thu May 14, 2009 2:49 am
Location: S.E. Montana

Re: trouble adding ppas in lmde(SOLVED)

Postby sharmila on Fri Dec 30, 2011 11:37 am

As explained at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632754

In /usr/lib/python2.6/dist-packages/softwareproperties/ppa.py
change:
sourceslistd = apt_pkg.Config.find_dir("Dir::Etc::sourceparts")
to this:
sourceslistd = apt_pkg.config.find_dir("Dir::Etc::sourceparts")
(Config should be lowercase)
Now, when you run apt-add-repository ppa:ubuntu-wine/ppa, it properly
adds the signing key


Line No. 47 for me. This fixed worked for me.
sharmila
Level 1
Level 1
 
Posts: 13
Joined: Sun May 22, 2011 8:18 am

Re: trouble adding ppas in lmde(SOLVED)

Postby craigevil on Fri Dec 30, 2011 3:06 pm

apt-add-repository is an Ubuntu command not a Debian command. Do not use Ubuntu PPAs with LMDE/Debian.
Edit: Take that back the command is in python-software-properties. That being said there are very few repos for Debian that are setup as PPAs.

Just as easy to copy+paste a repo into your sources.list.

If you want newer wine download and install it from:
WINE http://www.winehq.org/download/debian
Follow the instructions at: http://dev.carbon-project.org/debian/wine-unstable/

If you need any other apps not in the 'official' LMDE/Debian repos see the Giant sources.list in my signature.
Debian Sid KDE4.8.4 Kernel 3.4 Thinkpad R40 CPU Pentium M 1.3MHz RAM 2GB ATI Mobility 7500
Debian - "If you can't apt-get something, it isn't useful or doesn't exist"
Giant Debian sources.list | Debian upgrade script smxi | sysinfo script inxi
craigevil
Level 5
Level 5
 
Posts: 559
Joined: Wed Sep 15, 2010 6:10 am
Location: down the rabbit hole

Re: trouble adding ppas in lmde(SOLVED)

Postby podagee on Fri Dec 30, 2011 3:27 pm

no longer using lmde but thanks
Say it with me,"podagee,....(poh-duh-gee),"
got it?GOOD!

Compaq/HP Preasario CQ62
intel celeron 900 2.20ghz
250gb hdd
Mint 13 Cinnamon x64 Dual-Booted With Windows 8 PRO w/ MC x64
User avatar
podagee
Level 5
Level 5
 
Posts: 796
Joined: Mon Sep 26, 2011 1:45 pm
Location: hawaii

Re: trouble adding ppas in lmde(SOLVED)

Postby jbuntu on Fri Apr 13, 2012 3:48 pm

sharmila wrote:As explained at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632754

In /usr/lib/python2.6/dist-packages/softwareproperties/ppa.py
change:
sourceslistd = apt_pkg.Config.find_dir("Dir::Etc::sourceparts")
to this:
sourceslistd = apt_pkg.config.find_dir("Dir::Etc::sourceparts")
(Config should be lowercase)
Now, when you run apt-add-repository ppa:ubuntu-wine/ppa, it properly
adds the signing key


Line No. 47 for me. This fixed worked for me.


Good find sharmila. This worked for me too. Thanks.
jbuntu
Level 1
Level 1
 
Posts: 2
Joined: Sat Apr 07, 2012 3:20 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 6 guests