Автор Тема: Проблем с аптитуде (aptitude)  (Прочетена 2836 пъти)

antivirys

  • Напреднали
  • *****
  • Публикации: 61
  • Distribution: Debian/ETCH 4.05 VMS
  • Window Manager: KDE
  • Music is like a dream ... Dream is like me !!!
    • Профил
Проблем с аптитуде (aptitude)
« -: Nov 12, 2008, 23:15 »
Здравеите имам един малък проблем с които немога да се справя четох и в гоогле но нищо неможах да намеря :)

Цитат
darkstar:/home/core# aptitude safe-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages have unmet dependencies:
  perl: Depends: perl-modules (>= 5.10.0-17) but 5.10.0-16 is installed.
darkstar:/home/core#
Мерси предварително : :)
Активен

gizi_

  • Напреднали
  • *****
  • Публикации: 521
  • Distribution: Debian/Lenny, SLES/9-11
  • Window Manager: Gnome 2.22.3
    • Профил
Re: Проблем с аптитуде (aptitude)
« Отговор #1 -: Nov 12, 2008, 23:28 »
Пробвай с apt-get -f install
Активен

antivirys

  • Напреднали
  • *****
  • Публикации: 61
  • Distribution: Debian/ETCH 4.05 VMS
  • Window Manager: KDE
  • Music is like a dream ... Dream is like me !!!
    • Профил
Re: Проблем с аптитуде (aptitude)
« Отговор #2 -: Nov 12, 2008, 23:43 »
Цитат
darkstar:/# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
  perl: Depends: perl-modules (>= 5.10.0-17) but 5.10.0-16 is installed
        Recommends: perl-doc but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
нестава :)
Активен

completer

  • Напреднали
  • *****
  • Публикации: 347
  • Distribution: Debian 6.0
  • Window Manager: Gnome
    • Профил
    • WWW
Re: Проблем с аптитуде (aptitude)
« Отговор #3 -: Nov 13, 2008, 00:30 »
apt-get remove perl-modules

след това обнови хранилищата и пробвай с
apt-get install perl-modules ако иснталира пак същата версия просто си я намери в Synaptic или някъде другаде и си я инсталирай
Активен

I'm using Linux and i'm proud of it!!!
I hate Windows and i'm also proud of it!!! :)

antivirys

  • Напреднали
  • *****
  • Публикации: 61
  • Distribution: Debian/ETCH 4.05 VMS
  • Window Manager: KDE
  • Music is like a dream ... Dream is like me !!!
    • Профил
Re: Проблем с аптитуде (aptitude)
« Отговор #4 -: Nov 13, 2008, 00:39 »
Цитат
apt-get remove perl-modules

Цитат
darkstar:/home/core# apt-get  remove perl-modules
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  crossover-pro: Depends: perl-modules but it is not going to be installed
  cups: Depends: perl-modules but it is not going to be installed
  dpkg-dev: Depends: perl-modules but it is not going to be installed
  libmailtools-perl: Depends: libnet-perl
  libmime-tools-perl: Depends: perl-modules (>= 5.10) but it is not going to be installed or
                               libfile-temp-perl (>= 0.18)
  liburi-perl: Depends: libnet-perl
  perl: Depends: perl-modules (>= 5.10.0-17) but it is not going to be installed
        Recommends: perl-doc but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
darkstar:/home/core#
пробвал сам ги тези варианти :)
Активен

antivirys

  • Напреднали
  • *****
  • Публикации: 61
  • Distribution: Debian/ETCH 4.05 VMS
  • Window Manager: KDE
  • Music is like a dream ... Dream is like me !!!
    • Профил
Re: Проблем с аптитуде (aptitude)
« Отговор #5 -: Nov 13, 2008, 00:42 »
Цитат
darkstar:/home/core# aptitude install perl-doc
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
The following packages have unmet dependencies:
  perl: Depends: perl-modules (>= 5.10.0-17) but 5.10.0-16 is installed.
Unable to resolve dependencies!  Giving up...
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
aptitude failed to find a solution to these dependencies.  You can solve them yourself by hand or type 'n' to quit.
The following packages have unmet dependencies:
  perl: Depends: perl-modules (>= 5.10.0-17) but 5.10.0-16 is installed.
Resolve these dependencies by hand? [N/+/-/_/:/?] +
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
Resolve these dependencies by hand? [N/+/-/_/:/?] _
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
Resolve these dependencies by hand? [N/+/-/_/:/?] ?
Commands:
  y: continue with the installation
  n: abort and quit
  i: show information about one or more packages; the package names should
     follow the 'i'
  c: show the Debian changelogs of one or more packages; the package names
     should follow the 'c'
  d: toggle the display of dependency information
  s: toggle the display of changes in package sizes
  v: toggle the display of version numbers
  w: try to find a reason for installing a single package, or explain why
     installing one package should lead to installing another package.
  r: run the automatic dependency resolver to fix the broken dependencies.
  e: enter the full visual interface

  You may also specify modification to the actions which will be taken.  To do
  so, type an action character followed by one or more package names (or
  patterns).  The action will be applied to all the packages that you list.  The
  following actions are available:

  '+' to install packages
  '+M' to install packages and immediately flag them as automatically installed
  '-' to remove packages
  '_' to purge packages
  '=' to place packages on hold
  ':' to keep packages in their current state without placing them on hold
  '&M' to mark packages as automatically installed
  '&m' to mark packages as manually installed
  '&BD' to install the build-dependencies of a package.
Resolve these dependencies by hand? [N/+/-/_/:/?] +M
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
Resolve these dependencies by hand? [N/+/-/_/:/?] _
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
Resolve these dependencies by hand? [N/+/-/_/:/?] +
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
Resolve these dependencies by hand? [N/+/-/_/:/?] ?
Commands:
  y: continue with the installation
  n: abort and quit
  i: show information about one or more packages; the package names should
     follow the 'i'
  c: show the Debian changelogs of one or more packages; the package names
     should follow the 'c'
  d: toggle the display of dependency information
  s: toggle the display of changes in package sizes
  v: toggle the display of version numbers
  w: try to find a reason for installing a single package, or explain why
     installing one package should lead to installing another package.
  r: run the automatic dependency resolver to fix the broken dependencies.
  e: enter the full visual interface

  You may also specify modification to the actions which will be taken.  To do
  so, type an action character followed by one or more package names (or
  patterns).  The action will be applied to all the packages that you list.  The
  following actions are available:

  '+' to install packages
  '+M' to install packages and immediately flag them as automatically installed
  '-' to remove packages
  '_' to purge packages
  '=' to place packages on hold
  ':' to keep packages in their current state without placing them on hold
  '&M' to mark packages as automatically installed
  '&m' to mark packages as manually installed
  '&BD' to install the build-dependencies of a package.
Resolve these dependencies by hand? [N/+/-/_/:/?] &BD
The following packages are BROKEN:
  perl
The following NEW packages will be installed:
  perl-doc
The following partially installed packages will be configured:
  perl-suid
0 packages upgraded, 1 newly installed, 0 to remove and 36 not upgraded.
Need to get 8222kB of archives. After unpacking 14.1MB will be used.
Resolve these dependencies by hand? [N/+/-/_/:/?]
опитах със сички букви където ги пише но не става нито  :o също така опитах и
Цитат
darkstar:/home/core# dpkg --configure perl-modules
dpkg: parse error, in file `/var/lib/dpkg/available' near line 470822 package `kwin4':
 invalid package name (character `,' not allowed (only letters, digits and characters `-+._'))
darkstar:/home/core#
тук пук друг проблем :) Радвам се да ми помогнете  ;)
« Последна редакция: Nov 13, 2008, 00:52 от antivirys »
Активен

neter

  • Global Moderator
  • Напреднали
  • *****
  • Публикации: 3408
  • Distribution: Debian, SailfishOS, CentOS
  • Window Manager: LXDE, Lipstick
    • Профил
    • WWW
Re: Проблем с аптитуде (aptitude)
« Отговор #6 -: Nov 13, 2008, 02:18 »
Сподели с коя дистрибуция си и коя версия на дистрибуцията. Как ще се оправят зависимости без тази информация? Иначе, това, което трябва да направиш, е да махнеш споменатите perl пакети (няма лошо дори с опция --purge) и след това да качиш пасващи си версии на пакетите. Мисли логично. В началото е било достатъчно просто да надградиш perl-modules до нужната версия 5.10.0-17, щом тази версия на perl изисква тази версия на perl-modules. Ако не намериш хранилище за твоята дистрибуция, която да съдържа тази версия на perl-modules (малко вероятно), то намери пакета и го изтегли и инсталирай ръчно. Пакетът perl-doc съдържа документация, остави го за накрая, нищо не зависи от него. Следвай алгоритмите логично. Ако си с Debian, тази версия на perl се намира в unstable/sid хранилищата, така че трябва да добавиш тях или да изтеглиш нужните пакети с нужната версия от тук. Ето ти линк за изтегляне на текущата версия на perl-modules за sid. Командата "apt-get -f install" действа коректно само при добър избор на хранилища и зависи донякъде от текущо инсталираните и счупени пакети. Ръчното наместване на зависимостите е по-сигурен метод. Дерзай ;)
Активен

"Да си добре приспособен към болно общество не е признак за добро здраве" - Джиду Кришнамурти

nedpetko

  • Напреднали
  • *****
  • Публикации: 445
  • Distribution: Debian GNU/Linux
  • Window Manager: KDE
    • Профил
Re: Проблем с аптитуде (aptitude)
« Отговор #7 -: Nov 13, 2008, 09:02 »
Първо пробвай да премахнеш пакета с:
Код:
dpkg -P perl-modules
като е писал Нетер
след това проверка и поправка на зависимостите:
Код:
apt-get - f install
И ако ти даде, че всичко е наред може да ъпгрейдваш, но ако тази зависимост е необходима за ъпгреида най - вероятно ще ти даде грешка отново.
Тогава пак гледаш какво е писал Нетер и пробваш да инсталираш само версията на perl-modules която е необходима за удовлетворяване на зависимостите.
А най - лесно е да изчакаш докато в хранилищата се поправят версиите и няма счупени пакети - това ще сатане най - вероятно като добавят по - нова версия.
Активен

Debian amd64 squeeze/sid

antivirys

  • Напреднали
  • *****
  • Публикации: 61
  • Distribution: Debian/ETCH 4.05 VMS
  • Window Manager: KDE
  • Music is like a dream ... Dream is like me !!!
    • Профил
Re: Проблем с аптитуде (aptitude)
« Отговор #8 -: Nov 13, 2008, 10:26 »
справих се и по малко по лесни начини от тези но мерси се пак много :)  :) :)
Активен

Подобни теми
Заглавие Започната от Отговора Прегледи Последна публикация
Дебиян apt-get/aptitude проблем
Настройка на програми
remotex 16 4260 Последна публикация Dec 05, 2008, 13:34
от remotex
synaptic/aptitude problem
Настройка на програми
remotex 1 1975 Последна публикация Feb 13, 2009, 08:38
от tyuio