Bug 18284

Summary: Источники из /etc/apt/sources.list.d/desktop.*.list теряются при обновлении apt-conf-desktop
Product: ALT Linux Desktop Reporter: Yury Yurevich <the.pythy>
Component: bugsAssignee: Anton V. Boyarshinov <boyarsh>
Status: CLOSED FIXED QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P2 CC: inger, shakirov, vvk
Version: 4.1.0   
Hardware: all   
OS: Linux   

Description Yury Yurevich 2008-12-21 21:04:44 MSK
При настройке источников обновления из alterator, при обновлении apt-conf-desktop до текущей версий из M41 источники "теряются".

Шаги для воспроизведения ошибки:

1. acc->Источники обновлений, везде поставить http://ftp.altlinux.org

2. $ cat /etc/apt/sources.list.d/*list | egrep -v '^#' | egrep -v '^\s*$'
rpm [desktop] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/Desktop/current i586 main
rpm [desktop] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/Desktop/current i586 classic
rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux/updates/4.1 i586 updates
rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch i586 classic
rpm [updates] http://ftp.altlinux.org/pub/distributions/ALTLinux/4.1/branch noarch classic


3. $ sudo apt-get update
Get:1 http://ftp.altlinux.org i586 release [1021B]
Get:2 http://ftp.altlinux.org i586 release [718B]
Get:3 http://ftp.altlinux.org i586 release [734B]
Get:4 http://ftp.altlinux.org noarch release [732B]
Fetched 3205B in 0s (8608B/s)                   
Get:1 http://ftp.altlinux.org i586/main pkglist [505kB]
Get:2 http://ftp.altlinux.org i586/main release [139B]                                                                           
Get:3 http://ftp.altlinux.org i586/classic pkglist [1085kB]                                                                      
Get:4 http://ftp.altlinux.org i586/classic release [142B]                                                                        
Get:5 http://ftp.altlinux.org i586/updates pkglist [28.9kB]                                                                      
Get:6 http://ftp.altlinux.org i586/updates release [130B]                                                                        
Get:7 http://ftp.altlinux.org i586/classic pkglist [2569kB]                                                                      
Get:8 http://ftp.altlinux.org i586/classic release [142B]                                                                        
Get:9 http://ftp.altlinux.org noarch/classic pkglist [1062kB]                                                                    
Get:10 http://ftp.altlinux.org noarch/classic release [144B]                                                                     
Fetched 5250kB in 1m30s (57.7kB/s)                                                                                               
Reading Package Lists... Done
Building Dependency Tree... Done

4. 
$ apt-cache policy ktorrent
ktorrent:
  Установлен: (нет)
  Кандидат: 2.2.6-alt1
  Таблица версий:
     2.2.6-alt1 0
        500 http://ftp.altlinux.org i586/main pkglist
        500 http://ftp.altlinux.org i586/classic pkglist
        500 http://ftp.altlinux.org i586/classic pkglist

$ apt-cache policy apt-conf-desktop
apt-conf-desktop:
  Установлен: 4.1-alt0.M41.3
  Кандидат: 4.1-alt0.M41.5
  Таблица версий:
     4.1-alt0.M41.5 0
        500 http://ftp.altlinux.org i586/classic pkglist
 *** 4.1-alt0.M41.3 0
        500 http://ftp.altlinux.org i586/main pkglist
        500 http://ftp.altlinux.org i586/classic pkglist
        100 RPM Database

5.
$ sudo apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
  apt-conf-desktop
1 upgraded, 0 newly installed, 0 removed and 0 not upgraded.
Need to get 0B/11.3kB of archives.
After unpacking 2013B disk space will be freed.
Do you want to continue? [Y/n] 
Committing changes...
Preparing...                  ################################################################################################### [100%]
1: apt-conf-desktop           ################################################################################################### [100%]
warning: /etc/apt/sources.list.d/desktop.alt.list saved as /etc/apt/sources.list.d/desktop.alt.list.rpmsave
Running /usr/lib/rpm/posttrans-filetriggers
Done.

6. cat /etc/apt/sources.list.d/*list | egrep -v '^#' | egrep -v '^\s*$'

7.

$ apt-cache policy ktorrent
W: Невозможно найти пакет ktorrent

$ apt-cache policy apt-conf-desktop
apt-conf-desktop:
  Установлен: 4.1-alt0.M41.5
  Кандидат: 4.1-alt0.M41.5
  Таблица версий:
 *** 4.1-alt0.M41.5 0
        100 RPM Database
Comment 1 Lenar Shakirov 2011-01-20 10:04:38 MSK
Как минимум на p5:

# apt-get install apt-conf-desktop
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  apt-conf-platform5
The following NEW packages will be installed:
  apt-conf-desktop
0 upgraded, 1 newly installed, 1 removed and 6 not upgraded.
Need to get 14.5kB of archives.
After unpacking 4936B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 ftp://10.10.19.99 i586/classic apt-conf-desktop 5.0-alt3 [14.5kB]
Fetched 14.5kB in 0s (162kB/s)
Committing changes...
Preparing...                 ######################################################################################## [100%]
1: apt-conf-desktop          warning: /etc/apt/sources.list.d/alt.list created as /etc/apt/sources.list.d/alt.list.rpmnew5%)
######################################################################################## [100%]
Running /usr/lib/rpm/posttrans-filetriggers
Done.