Bug 48551 - Команда вида "apt-repo add 'rpm-src [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic'" ломает файл репозиториев
Summary: Команда вида "apt-repo add 'rpm-src [alt] http://ftp.altlinux.org/pub/distrib...
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: apt-repo (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Cherepanov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-22 18:46 MSK by Nikolay Strelkov
Modified: 2023-11-22 18:46 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Strelkov 2023-11-22 18:46:34 MSK
Шаги для повторения:
1. Запустить чистый Docker-конейнер командой
   docker run -it --rm alt:sisyphus
2. Обновить все пакеты в контейенере и установить пакет apt-repo
   apt-get update && apt-get dist-upgrade -y && apt-get install -y apt-repo
3. Вывести список репозиториев, добавить репозиторий исходного кода, посмотреть новый список репозиториев, обновить списки пакетов с помощью команд:
   apt-repo -v
   apt-repo
   apt-repo add 'rpm-src [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic'
   apt-repo
   apt-get update

Ожидаемый результат: 
* строка 'rpm-src [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic' добавлена в файл /etc/apt/sources.list без изменений, списки пакетов обновлены без ошибок.

Реальный результат:
* строка 'rpm-src [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic' добавлена в файл /etc/apt/sources.list в сломанном виде (а именно с пробелом не в том месте - 'rpm-src [alt] http://ftp.altlinux.org/pub distributions/ALTLinux/Sisyphus/x86_64 classic'), команда `apt-get update` завершается ошибкой. См. полный лог по п.3 ниже:

```
[root@04154fa94cd9 /]# apt-repo -v
1.4.1
[root@04154fa94cd9 /]# apt-repo
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64-i586 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/noarch classic
[root@04154fa94cd9 /]# apt-repo add 'rpm-src [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic'
[root@04154fa94cd9 /]# apt-repo
rpm-src [alt] http://ftp.altlinux.org/pub distributions/ALTLinux/Sisyphus/x86_64 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/x86_64-i586 classic
rpm [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/noarch classic
[root@04154fa94cd9 /]# apt-get update
Get:1 http://ftp.altlinux.org distributions/ALTLinux/Sisyphus/x86_64 release [4238B]
Get:2 http://ftp.altlinux.org Sisyphus/x86_64 release [4238B]
Get:3 http://ftp.altlinux.org Sisyphus/x86_64-i586 release [1680B]
Get:4 http://ftp.altlinux.org Sisyphus/noarch release [2859B]
Err http://ftp.altlinux.org Sisyphus/x86_64 release
  no signatures in file /var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_Sisyphus_x86%5f64_base_release
Fetched 8778B in 0s (140kB/s)
W: Release files for some repositories could not be retrieved or authenticated. Such repositories are being ignored.
E: Failed to fetch http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/x86_64/base/release  no signatures in file /var/lib/apt/lists/partial/ftp.altlinux.org_pub_distributions_ALTLinux_Sisyphus_x86%5f64_base_release
E: Some index files failed to download. They have been ignored, or old ones used instead.
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
E: Tried to dequeue a fetching object
[root@04154fa94cd9 /]# 
```

Строка 'rpm-src [alt] http://ftp.altlinux.org/pub/distributions/ALTLinux Sisyphus/noarch classic' тоже ломается.

Аналогичное происходит и в p10.