Bug 3804 - "apt-get install --reinstall" creates duplicated packages
Summary: "apt-get install --reinstall" creates duplicated packages
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: apt (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-08 16:22 MSK by Sergey Vlasov
Modified: 2006-08-29 20:54 MSD (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Vlasov 2004-03-08 16:22:00 MSK
При использовании apt-get install --reinstall для пакетов, попадающих в
Allow-Duplicates (kernel-image-*, kernel-modules-*), появляются дублирующиеся
записи в базе rpm.

Steps to Reproduce:
# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
# rpm -q kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1
warning: package kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1 is not installed
# apt-get install kernel-modules-fglrx-std-up\#1.0.3.7.0-alt4.1
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  kernel-modules-fglrx-std-up#1.0.3.7.0-alt4.1
0 upgraded, 1 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/87.5kB of archives.
After unpacking 249kB of additional disk space will be used.
Committing changes...
Preparing...                
###############################################################################################
[100%]
1:
kernel-modules-fglrx-std-u###############################################################################################
[100%]
Done.
# rpm -q kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1
kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1
# apt-get install --reinstall kernel-modules-fglrx-std-up\#1.0.3.7.0-alt4.1
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 removed and 0 not upgraded.
Need to get 0B/87.5kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n] 
Committing changes...
Preparing...                
###############################################################################################
[100%]
1:
kernel-modules-fglrx-std-u###############################################################################################
[100%]
Done.
# rpm -q kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1
kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1
kernel-modules-fglrx-std-up-1.0.3.7.0-alt4.1
# apt-get check
Reading Package Lists... Done
Building Dependency Tree... Done
#
Comment 1 Dmitry V. Levin 2004-07-02 16:25:50 MSD
Мне кажется, что тут ничего хорошего придумать невозможно:
если есть несколько версий одного пакета (из-за Allow-Duplicates), то reinstall
должен либо установить ещё одну версию (дубликат), либо удалить старые.
Последнее недопустимо из-за Allow-Duplicates.