Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1052985: software-properties: unable to add repository by its sources.list line

34 views
Skip to first unread message

Norbert

unread,
Sep 26, 2023, 11:40:05 AM9/26/23
to
Package: software-properties
Version: software-properties-common
Severity: important
X-Debbugs-Cc: nrb...@gmail.com

It seems that add-apt-repository from software-properties-common does not work with old repositories.

Steps to reproduce:
1. Have Debian sid installed
2. Install necessary packages by

# apt-get update
# apt-get install software-properties-common python3-launchpadlib

3. Try to add repository by its sources.list line:

# apt-key adv --keyserver keyserver.ubuntu.com --recv E756285F30DB2B2BB35012E219BFCAF5168D33A9
# add-apt-repository -y "deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main"

Expected results:

* key added, two repositories are added to the relevant *.list files at /etc/apt/sources.list.d/

Actual results:

* relevant *.list files at /etc/apt/sources.list.d/ are not created, having errors instead

See also: https://pad.lv/2037210


-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.194-std-def-alt1 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Norbert

unread,
Sep 26, 2023, 4:50:05 PM9/26/23
to
Really this happens only in Docker debian:sid container.
Running add-apt-repository twice fixed the issue. See full log below:

```
$ docker run -it --rm debian:sid bash -c -x "apt-get -qq update && apt-get -qq dist-upgrade > /dev/null && apt-get -qq install software-properties-common python3-launchpadlib apt-utils > /dev/null ; grep -r ^deb /etc/apt ; apt-key adv --keyserver keyserver.ubuntu.com --recv E756285F30DB2B2BB35012E219BFCAF5168D33A9 ; add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main' ; add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main' ; grep -r ^deb /etc/apt ; add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main' ; add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main' ; grep -r ^deb /etc/apt"
+ apt-get -qq update
+ apt-get -qq dist-upgrade
debconf: delaying package configuration, since apt-utils is not installed
+ apt-get -qq install software-properties-common python3-launchpadlib apt-utils
debconf: delaying package configuration, since apt-utils is not installed
+ grep -r '^deb' /etc/apt
+ apt-key adv --keyserver keyserver.ubuntu.com --recv E756285F30DB2B2BB35012E219BFCAF5168D33A9
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.CNJKByELkR/gpg.1.sh --keyserver keyserver.ubuntu.com --recv E756285F30DB2B2BB35012E219BFCAF5168D33A9
gpg: key 19BFCAF5168D33A9: public key "Launchpad PPA for Norbert" imported
gpg: Total number processed: 1
gpg:               imported: 1
+ add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main'
Repository: 'deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main'
Description:
This PPA contains VTE library from Ubuntu 20.04 LTS which is not affected by stupid bug https://pad.lv/1922276 . So user will be able to select all terminal output with full scroll-back in MATE Terminal and other VTE-based terminals as it is expected.

This PPA is useful for Ubuntu 22.04 LTS, Debian 11 (bullseye) and Debian 12 (bookworm).

As usual one can always remove this PPA and downgrade VTE packages by using `sudo apt-get install ppa-purge` and `sudo ppa-purge ppa:nrbrtx/vte`.
More info: https://launchpad.net/~nrbrtx/+archive/ubuntu/vte
Adding repository.
Adding deb entry to /etc/apt/sources.list
Adding disabled deb-src entry to /etc/apt/sources.list
Adding key to /etc/apt/trusted.gpg.d/nrbrtx-ubuntu-vte.gpg with fingerprint E756285F30DB2B2BB35012E219BFCAF5168D33A9
Hit:1 http://deb.debian.org/debian sid InRelease
Get:2 http://deb.debian.org/debian sid/main amd64 DEP-11 Metadata [4558 kB]
Fetched 4558 kB in 2s (1973 kB/s)          
Reading package lists... Done
+ add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main'
Repository: 'deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main'
Description:
This PPA provides patched libwnck3 package to fix  https://github.com/mate-desktop/mate-panel/issues/1230 and https://pad.lv/1947420 .
See details at https://github.com/mate-desktop/mate-panel/issues/1230#issuecomment-997422612 .

This PPA is useful for Ubuntu 22.04 LTS and Debian 12 (bookworm).

As usual one can always remove this PPA and downgrade WNCK packages by using `sudo apt-get install ppa-purge` and `sudo ppa-purge ppa:nrbrtx/wnck`.
More info: https://launchpad.net/~nrbrtx/+archive/ubuntu/wnck
Adding repository.
Adding deb entry to /etc/apt/sources.list
Adding disabled deb-src entry to /etc/apt/sources.list
Adding key to /etc/apt/trusted.gpg.d/nrbrtx-ubuntu-wnck.gpg with fingerprint E756285F30DB2B2BB35012E219BFCAF5168D33A9
Hit:1 http://deb.debian.org/debian sid InRelease
Get:2 http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy InRelease [18.1 kB]
Get:3 http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy/main amd64 Packages [1200 B]
Fetched 19.3 kB in 0s (39.2 kB/s)  
Reading package lists... Done
+ grep -r '^deb' /etc/apt
/etc/apt/sources.list:deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main
+ add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main'
Repository: 'deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main'
Description:
This PPA contains VTE library from Ubuntu 20.04 LTS which is not affected by stupid bug https://pad.lv/1922276 . So user will be able to select all terminal output with full scroll-back in MATE Terminal and other VTE-based terminals as it is expected.

This PPA is useful for Ubuntu 22.04 LTS, Debian 11 (bullseye) and Debian 12 (bookworm).

As usual one can always remove this PPA and downgrade VTE packages by using `sudo apt-get install ppa-purge` and `sudo ppa-purge ppa:nrbrtx/vte`.
More info: https://launchpad.net/~nrbrtx/+archive/ubuntu/vte
Adding repository.
Adding deb entry to /etc/apt/sources.list
Adding disabled deb-src entry to /etc/apt/sources.list
Adding key to /etc/apt/trusted.gpg.d/nrbrtx-ubuntu-vte.gpg with fingerprint E756285F30DB2B2BB35012E219BFCAF5168D33A9
Hit:1 http://deb.debian.org/debian sid InRelease
Hit:2 http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy InRelease
Get:3 http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy InRelease [18.1 kB]
Get:4 http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy/main amd64 Packages [2236 B]
Fetched 20.3 kB in 1s (30.6 kB/s)  
Reading package lists... Done
+ add-apt-repository -y 'deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main'
Repository: 'deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main'
Description:
This PPA provides patched libwnck3 package to fix  https://github.com/mate-desktop/mate-panel/issues/1230 and https://pad.lv/1947420 .
See details at https://github.com/mate-desktop/mate-panel/issues/1230#issuecomment-997422612 .

This PPA is useful for Ubuntu 22.04 LTS and Debian 12 (bookworm).

As usual one can always remove this PPA and downgrade WNCK packages by using `sudo apt-get install ppa-purge` and `sudo ppa-purge ppa:nrbrtx/wnck`.
More info: https://launchpad.net/~nrbrtx/+archive/ubuntu/wnck
Adding repository.
Found existing deb entry in /etc/apt/sources.list
Adding deb entry to /etc/apt/sources.list
Found existing deb-src entry in /etc/apt/sources.list
Adding disabled deb-src entry to /etc/apt/sources.list
Adding key to /etc/apt/trusted.gpg.d/nrbrtx-ubuntu-wnck.gpg with fingerprint E756285F30DB2B2BB35012E219BFCAF5168D33A9
Hit:1 http://deb.debian.org/debian sid InRelease
Hit:2 http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy InRelease
Hit:3 http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy InRelease
Reading package lists... Done
+ grep -r '^deb' /etc/apt
/etc/apt/sources.list:deb http://ppa.launchpad.net/nrbrtx/wnck/ubuntu jammy main
/etc/apt/sources.list:deb http://ppa.launchpad.net/nrbrtx/vte/ubuntu jammy main
```

Standalone Debian sid system is not affected at all.
So this bug report may be closed.
But please do not forget to take care on  https://pad.lv/2037210 in the upcoming Ubuntu 23.10. 
0 new messages