Linux за българи: Форуми

Linux секция за начинаещи => Настройка на програми => Темата е започната от: cancel в Sep 02, 2004, 22:24



Титла: Проблем с dependencies при apt-get
Публикувано от: cancel в Sep 02, 2004, 22:24
Информация за системата: Debian Woody 3.01
cancel:/home/cbb# uname -a
Linux cancel 2.6.7-1-386 #1 Thu Jul 8 05:08:04 EDT 2004 i686 GNU/Linux
Самият проблем:
cancel:/home/cbb# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these.
The following packages have unmet dependencies:
  kdeaddons: Depends: kontact-plugins (>= 4:3.2.3-2) but it is not installed
E: Unmet dependencies. Try using -f.

След apt-get -f install проблемът си остава
и това съобщение ми присъства про всеки опит за инсталиране на някоя програма (дори и при apt-get remove kde* или apt-get install --reinstall kde )
Ще съм благодарен ако някой да даде идеи как да се справя с този проблем.


Титла: Проблем с dependencies при apt-get
Публикувано от: в Sep 02, 2004, 22:58
Дай да видим:
/etc/apt/sources.list
/etc/apt/apt.conf

Опитай да направиш това, което е обяснено ТУК

Тука сме - нема се пУашиш ;)


Титла: Проблем с dependencies при apt-get
Публикувано от: alabal в Sep 03, 2004, 00:24
Понякога поради прекъсване на процес на инсталация или някакъв друг проблем се появява подобно съобщение, можеш да пробваш следните три неща:

# dpkg --configure -a
# apt-get -f install kontact-plugins (за да инсталираш насилствено пакета, както те съветва apt)
# apt-get -s -f remove kontact-plugins (за да го деинсталираш насилствено -s е за симулация - ако видиш че няма проблеми пишеш същото без -s)

Четвъртата възможност е kontact-plugins да е от някой от другите клонове на дистрибуцията и ги нямаш в sources.list, както предположи SMITH.


Титла: Проблем с dependencies при apt-get
Публикувано от: cancel в Sep 03, 2004, 00:55
cancel:/home# cat /etc/apt/sources.list
# binary & source package entries

# BINARY PACKAGES
deb http://debian.ludost.net/debian stable   main contrib non-free
deb http://debian.ludost.net/debian testing  main contrib non-free
deb http://debian.ludost.net/debian unstable main contrib non-free

deb http://debian.ludost.net/debian-non-US stable/non-US   main contrib non-free
deb http://debian.ludost.net/debian-non-US testing/non-US  main contrib non-free
deb http://debian.ludost.net/debian-non-US unstable/non-US main contrib non-free

# Proposed & security updates
#deb http://security.debian.org     stable/updates            main contrib non-free
#deb http://security.debian.org     testing/updates           main contrib non-free
deb http://debian.ludost.net/debian proposed-updates          main contrib non-free
deb http://debian.ludost.net/debian testing-proposed-updates  main contrib non-free

deb http://debian.ludost.net/debian-security stable/updates   main contrib non-free
deb http://debian.ludost.net/debian-security testing/updates  main contrib non-free

# SOURCE PACKAGES
deb-src http://debian.ludost.net/debian stable   main contrib non-free
deb-src http://debian.ludost.net/debian testing  main contrib non-free
deb-src http://debian.ludost.net/debian unstable main contrib non-free

deb-src http://debian.ludost.net/debian-non-US stable/non-US   main contrib non-free
deb-src http://debian.ludost.net/debian-non-US testing/non-US  main contrib non-free
deb-src http://debian.ludost.net/debian-non-US unstable/non-US main contrib non-free

# Proposed & security updates
#deb-src http://security.debian.org     stable/updates            main contrib non-free
#deb-src http://security.debian.org     testing/updates           main contrib non-free
deb-src http://debian.ludost.net/debian proposed-updates          main contrib non-free
deb-src http://debian.ludost.net/debian testing-proposed-updates  main contrib non-free

deb-src http://debian.ludost.net/debian-security stable/updates   main contrib non-free
deb-src http://debian.ludost.net/debian-security testing/updates  main contrib non-free


deb http://debian.ludost.net/debian/../project/experimental main contrib non-free
deb-src http://debian.ludost.net/debian/../project/experimental main contrib non-free

deb ftp://ftp.uni-sofia.bg/debian-backports/debian</a> stable package ...
deb-src ftp://ftp.uni-sofia.bg/debian-backports/debian</a> stable package ...

# http://snapshot.debian.net/archive/date/last-week/debian/

/////////////////////////////////////////////////////////////////////

cancel:/home# cat /etc/apt/apt.conf
APT::Cache-Limit 10000000;
/////////////////////////////////////////
cancel:/home# apt-get -f install
Reading Package Lists... Done
Building Dependency Tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
  kontact-plugins
Suggested packages:
  kdeaddons-doc-html
The following NEW packages will be installed:
  kontact-plugins
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
152 not fully installed or removed.
Need to get 0B/52.4kB of archives.
After unpacking 188kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 101105 files and directories currently installed.)
Unpacking kontact-plugins (from .../kontact-plugins_4%3a3.2.3-2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/kontact-plugins_4%3a3.2.3-2_i386.deb (--unpack):
 trying to overwrite `/usr/lib/kde3/kcm_kontactknt.so', which is also in package kontact
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/kontact-plugins_4%3a3.2.3-2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

/////////////////////////////////////////////////
горният месидж ми го дава като "отговор" на
apt-get -s -f remove kontact-plugins
apt-get -f install kontact-plugins
apt-get -f -s remove kdeaddons
Това което ме съветваше apt го направих първо; без реален ефкет. Не ми се вярва  kontact-plugins да е от някой от другите клонове на дистрибуцията и да ги нямам в sources.list-а защото всичко тук съм инсталирал от този sources.list

dpkg --configure -a отговаря с ...
cancel:/home# dpkg --configure -a
dpkg: dependency problems prevent configuration of kdeaddons:
 kdeaddons depends on kontact-plugins (>= 4:3.2.3-2); however:
  Package kontact-plugins is not installed.
dpkg: error processing kdeaddons (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 kdeaddons


Титла: Проблем с dependencies при apt-get
Публикувано от: в Sep 03, 2004, 02:30
Здравей,

Можеш да опиташ да премахнеш само проблемния пакет с dpkg --force-depends -P pkg_name, но помисли какво точно си обновявал, т.е. това, което вече е инсталирано, но не е конфигурирано.
--force-... може да направи поразии (man dpkg).
Често такива проблеми се получават от огромния списък в sources.list - едновременно към всички клонове, включително и experimental. Съветвам те да ползваш по-малко.

Според лога kontact-plugins все още не е инсталиран, а зависимостта към него е от страна на метапакета kdeaddons.
Опитай да премахнеш този метапакет и kontact-plugins, ако е частично инсталиран, след което
dpkg --configure -a

Ако КДЕ-то, което имаш, представлява насила създадена смесица /до колкото е възможно ;-)/ от stable, testing и unstable, тогава нещата може да са много по-засукани и невъзможни за post-install конфигуриране.


Титла: Проблем с dependencies при apt-get
Публикувано от: в Sep 03, 2004, 11:55
Редактирай сегашния си файл /etc/apt/apt.conf да има следното съдържание (copy+paste):
Примерен код
Примерен код
APT::Cache-Limit 16000000;
Apt::Get::Purge;
DPkg
{
  Options {"--force-overwrite";}
}

Много е важно не да добавиш, а да замениш сегашното съдържание на файла с това по-горе.