Bug 59514 - Отсутствие секции base не дает удалять компоненты через alteratorctl
Summary: Отсутствие секции base не дает удалять компоненты через alteratorctl
Status: RESOLVED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: alteratorctl (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: sav@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-06-11 18:11 MSK by Белая Алёна
Modified: 2026-06-23 15:13 MSK (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Белая Алёна 2026-06-11 18:11:58 MSK
alt-edition-workstation-11.2.2-alt1

Стенд: Alt Workstation 11.1 x86_64, обновленный до Sisyphus

Шаги воспроизведения: 
1. Установить пакеты: 
# apt-get install -y alteratorctl alt-components-workstation alt-edition-workstation

2. Установить компоненту:
$  alteratorctl components install squid
3. Удалить компоненту: 
$  alteratorctl components remove squid

Результат: установка успешна, а удаление компонента обрывается:
==== AUTHENTICATING FOR org.altlinux.alterator.apt1.InstallOrRemove ====
org.altlinux.alterator.apt1.InstallOrRemove требует аутентификации.
Authenticating as: System Administrator (root)
Password: 
==== AUTHENTICATION COMPLETE ====
Чтение списков пакетов...
Построение дерева зависимостей...
Can't get components of non-existent section "base" of current edition.

alteratorctl вероятно проверяет наличие удаляемого компонента в секции "базовые компоненты" и т.к. секция "base" в редакции отсутствует, то, проверка не удается, и удаление останавливается. 

Ожидаемый результат: удаление успешно

Если удалить пакет alt-edition-workstation, то alteratorctl успешно удаляет компоненты.
Comment 1 Semen Fomchenkov 2026-06-11 18:24:51 MSK
Думаю стоит доработать alteratorctl чтобы в случае отсутствия этой секции проверка не происходила.
Comment 2 Repository Robot 2026-06-23 15:13:41 MSK
alteratorctl-0.4.0-alt1 -> sisyphus:

Mon Jun 22 2026 Pavel Khromov <hromovpi@altlinux> 0.4.0-alt1
- Added:
  + Module for working with sources.
- Fixed:
  + Fail of `editions list`. (Closes #59536);
  + Helps for components, diag, services, systeminfo, editions modules and packages apt submodule. (Closes #57975);
  + The component module does not allow deleting a component if there is no base section in the edition. (Closes #59514).