Bug 12526 - Should work with empty sources.list
Summary: Should work with empty sources.list
Status: CLOSED WORKSFORME
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: 2007-08-10 15:04 MSD by Vitaly A. Ostanin
Modified: 2010-10-31 00:47 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 Vitaly A. Ostanin 2007-08-10 15:04:53 MSD
Сделал для spt отдельные apt.conf с включением sources.list аналогично /etc/apt.
Оказалось, что apt не работает с пустым sourcelist:

apt-config: broken Dir::Etc::SourceList: /path/to/x86_64.sources.list

Если добавить в этот файл хотя бы одну пустую строку, apt работает.

apt-0.5.15lorg2-alt11
Comment 1 Michael Shigorin 2010-10-31 00:47:21 MSD
root@pad ~ # mv /etc/apt/sources.list{,-}
root@pad ~ # touch /etc/apt/sources.list    
root@pad ~ # apt-get update 
Reading Package Lists... Done
Building Dependency Tree... Done
root@pad ~ # apt-get clean 
root@pad ~ # apt-get update 
Reading Package Lists... Done
Building Dependency Tree... Done
root@pad ~ # apt-get install bubu
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package bubu
root@pad ~ # rpm -q apt
apt-0.5.15lorg2-alt33