[devel] apt и зависимости

Kirill A. Shutemov =?iso-8859-1?q?kas_=CE=C1_altlinux=2Eru?=
Вт Ноя 29 12:00:35 MSK 2005


Вводная информация:

> apt-cache show ruby1.8-module-patterns
Package: ruby1.8-module-patterns
<skip/>
Pre-Depends: rpmlib(VersionedDependencies) (<= 3.0.3-1),
rpmlib(PayloadFilesHavePrefix) (<= 4.0-1), rpmlib(CompressedFileNames) (<=
3.0.4-1)
Depends: ruby-module-thread, /usr/share/ruby/1.8
Provides: ruby-module-patterns (= 1.8.3-alt0.3), ruby1.8-module-patterns
(= 1.8.3-alt0.3)
<skip/>

> apt-cache show libruby1.8
Package: libruby1.8
<skip/>
Pre-Depends: rpmlib(VersionedDependencies) (<= 3.0.3-1), /bin/sh, /bin/sh,
rpmlib(PayloadFilesHavePrefix) (<= 4.0-1), rpmlib(CompressedFileNames) (<=
3.0.4-1)
Depends: libc.so.6, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1),
libc.so.6(GLIBC_2.1.3), libc.so.6(GLIBC_2.2), libc.so.6(GLIBC_2.3),
libc.so.6(GLIBC_2.3.3), libcrypt.so.1, libcrypt.so.1(GLIBC_2.0),
libdl.so.2, libdl.so.2(GLIBC_2.0), libdl.so.2(GLIBC_2.1), libm.so.6,
libm.so.6(GLIBC_2.0)
Conflicts: libruby1.9
Provides: libruby (= 1.8.3-alt0.3), /usr/lib/ruby/1.8/i586-linux-gnu,
/usr/share/ruby/1.8, /usr/lib/ruby/vendor_ruby/1.8/i586-linux-gnu,
/usr/share/ruby/vendor_ruby/1.8, libruby.so.1.8, libruby1.8 (=
1.8.3-alt0.3)
Obsoletes: libruby
<skip/>

> apt-cache show ruby1.8-module-thread
Package: ruby1.8-module-thread
<skip/>
Pre-Depends: rpmlib(VersionedDependencies) (<= 3.0.3-1),
rpmlib(PayloadFilesHavePrefix) (<= 4.0-1), rpmlib(CompressedFileNames) (<=
3.0.4-1)
Depends: ruby-module-e2mmap, /usr/share/ruby/1.8
Provides: ruby-module-thread (= 1.8.3-alt0.3), ruby1.8-module-thread (=
1.8.3-alt0.3)
<skip/>

А теперь самое интересное:

> apt-get install ruby1.8-module-patterns 
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  ruby1.8-module-patterns: Depends: /usr/share/ruby/1.8
  E: Broken packages

Указываю libruby1.8 явно:

> apt-get install ruby1.8-module-patterns libruby1.8
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  ruby1.8-module-patterns: Depends: ruby-module-thread
  E: Broken packages

Теперь явно указываю ruby1.8-module-thread:
> apt-get install ruby1.8-module-patterns libruby1.8 ruby1.8-module-thread
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  ruby1.8-module-e2mmap
he following NEW packages will be installed:
  libruby1.8 ruby1.8-module-e2mmap ruby1.8-module-patterns
  ruby1.8-module-thread
0 upgraded, 4 newly installed, 0 removed and 1 not upgraded.
Need to get 0B/321kB of archives.
After unpacking 890kB of additional disk space will be used.
Do you want to continue? [Y/n] 

И опа -- apt'у полегчало. Почему он сам не смог найти эти зависимоти?
-- 
Kirill A. Shutemov				Belarus, Minsk
E-mail:	k.shutemov (AT) sam-solutions.net
JID: kas (AT) altlinux.org
ICQ: 152302675

PS: я этой осенью сформулировал ещё один из своих принципов --
"помогай или не мешай".  Бишь можешь сделать _лучше_, чем
"конкурент" -- делай.  Не можешь -- учись, а тем временем --
не отсвечивай.
		-- mike in devel@
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20051129/7c4178de/attachment-0001.bin>


Подробная информация о списке рассылки Devel