LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-12-2023, 12:04 PM   #1
giesbert
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: Debian 12
Posts: 57

Rep: Reputation: 12
Debian Bullseye - Sid: add-apt-repository not working python problem


Code:
cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux bookworm/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=bookworm
ID=debian
I installed Debian Bullseye 11 on my laptop. After a while I upgraded to unstable, by changing sources.list as:
Code:
deb http://ftp.nl.debian.org/debian/ sid main contrib non-free
deb http://ftp.nl.debian.org/debian/ bullseye main contrib non-free
Everything was working well. But now I discovered that I do have an problem I've never seen before.

Code:
sudo add-apt-repository ppa:jlbarriere68/noson-app
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 362, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
                  ^^^^^^^^^^^^^^^^^
  File "/usr/bin/add-apt-repository", line 345, in main
    shortcut = handler(source, **shortcut_params)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
    return handler(shortcut, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 86, in __init__
    if self.lpppa.publish_debug_symbols:
       ^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 126, in lpppa
    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
                  ^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 113, in lpteam
    self._lpteam = self.lp.people(self.teamname)
                   ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'people'
Code:
python --version
Python 3.11.1
It looks like I have a problem with some python packages?
I installed python-is-python3 but that did not solve this issue.

Anyone has a suggestion to solve this?
 
Old 01-12-2023, 02:16 PM   #2
giesbert
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: Debian 12
Posts: 57

Original Poster
Rep: Reputation: 12
I've solved it. I had to install python3-launchpadlib.
Don't know what the cause of this problem was!
 
Old 05-10-2023, 06:46 AM   #3
artyomfm
LQ Newbie
 
Registered: May 2023
Posts: 1

Rep: Reputation: 0
How did you figured it out that python3-launchpadlib was missing?
 
Old 05-10-2023, 07:09 AM   #4
giesbert
Member
 
Registered: Aug 2003
Location: The Netherlands
Distribution: Debian 12
Posts: 57

Original Poster
Rep: Reputation: 12
I do not remember exactly. It's a while ago. I know I searched the internet for this error message.
 
1 members found this post helpful.
Old 06-24-2023, 06:26 AM   #5
johnoo
LQ Newbie
 
Registered: Jun 2023
Distribution: Debian 12 rc4
Posts: 1

Rep: Reputation: 0
it helped me - solved the issue.
Thanks
Johnoo
 
Old 06-24-2023, 09:00 AM   #6
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,883
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
Why in the world are you using a ppa to begin with?

This is the Python version in the Debian sid repo:
Code:
$ python --version
Python 3.11.4
Python 3.12 is there also if you want to install it.
Code:
$ policy python3.12
python3.12:
  Installed: (none)
  Candidate: 3.12.0~b3-1
https://wiki.debian.org/Python

Last edited by craigevil; 06-24-2023 at 12:50 PM.
 
Old 11-19-2023, 05:10 AM   #7
KaNaTa
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
It helped me too!!

Thanks a lot
 
Old 12-05-2023, 08:14 PM   #8
MatiasOrcajo
LQ Newbie
 
Registered: Dec 2023
Posts: 1

Rep: Reputation: 0
THANK YOU
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \ > /etc/apt/apt.conf.d/01keep-debs Outabux Debian 10 12-30-2022 12:12 PM
LXer: Setting up Tomcat 9.0.41 && mariadb-server 10.5 on Debian Bullseye/sid LXer Syndicated Linux News 0 01-18-2021 01:51 AM
add-apt-repository not working. wolfeking Linux - Newbie 1 04-30-2013 11:09 AM
[SOLVED] Difference between add-apt-repository and apt-add-repository Kenny_Strawn Ubuntu 3 12-22-2010 07:50 PM
Custom apt-repository for sid apt-get upgrades Cyberman Debian 1 02-20-2009 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration