Public bug reported:
Ubuntu version: "24.04 (Noble Numbat)"
software-properties-common version: 0.99.40
This command fails to run when package python3-six is not installed:
```
$ add-apt-repository -y --ppa ppa:ubuntu-wsl-dev/ppa
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 14, in
from softwareproperties.shortcuts import shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line
23, in
from softwareproperties.ppa import PPAShortcutHandler
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 25, in
from launchpadlib.launchpad import Launchpad
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 48, in
from launchpadlib.credentials import (
File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 59,
in
from six.moves.urllib.parse import parse_qs
ModuleNotFoundError: No module named 'six'
```
I reproduced this bug in docker. The following dockerfile exercises it:
```
FROM ubuntu:devel
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y --ppa ppa:ubuntu-wsl-dev/ppa
```
Modifying the docker file by adding `RUN apt-get install -y python3-six`
before the last line works as a workaround.
** Affects: software-properties (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
Ubuntu version: "24.04 (Noble Numbat)"
software-properties-common version: 0.99.40
-
This command fails to run when package python3-six is not installed:
```
$ add-apt-repository -y --ppa ppa:ubuntu-wsl-dev/ppa
Traceback (most recent call last):
- File "/usr/bin/add-apt-repository", line 14, in
- from softwareproperties.shortcuts import shortcut_handler
- File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line
23, in
- from softwareproperties.ppa import PPAShortcutHandler
- File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 25,
in
- from launchpadlib.launchpad import Launchpad
- File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 48,
in
- from launchpadlib.credentials import (
- File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 59,
in
- from six.moves.urllib.parse import parse_qs
+ File "/usr/bin/add-apt-repository", line 14, in
+ from softwareproperties.shortcuts import shortcut_handler
+ File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line
23, in
+ from softwareproperties.ppa import PPAShortcutHandler
+ File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 25,
in
+ from launchpadlib.launchpad import Launchpad
+ File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 48,
in
+ from launchpadlib.credentials import (
+ File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 59,
in
+ from six.moves.urllib.parse import parse_qs
ModuleNotFoundError: No module named 'six'
```
I reproduced this bug in docker. The following dockerfile exercises it:
```
FROM ubuntu:devel
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y --ppa ppa:ubuntu-wsl-dev/ppa
```
Modifying the docker file by adding `RUN apt-get install -y python3-six`
- works as a workaround.
+ before the last line works as a workaround.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to software-properties in
Ubuntu.
https://bugs.launchpad.net/bugs/2049014
Title:
software-properties-common is missing dependecy python3-six in Noble
Status in software-properties package in Ubuntu:
New
Bug description:
Ubuntu version: "24.04 (Noble Numbat)"
software-properties-common version: 0.99.40
This command fails to run when package python3-six is not installed:
```
$ add-apt-repository -y --ppa ppa:ubuntu-wsl-dev/ppa
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 14, in
from softwareproperties.shortcuts import shortcut_handler
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line
23, in
from softwareproperties.ppa import PPAShortcutHandler
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 25,
in
from launchpadlib.launchpad import Launchpad
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 48,
in
from launchpadlib.credentials import (
File "/usr/lib/python3/dist-packages/launchpadlib/credentials.py", line 59,
in
from six.moves.urllib.parse import parse_qs
ModuleNotFoundError: No module named 'six'
```
I reproduced this bug in docker. The following dockerfile exercises it:
```
FROM ubuntu:devel
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN