Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
alias apt-cache='apt-cache -n'
apt-cache search wget
epiphany-extension-gwget — Gwget extension for Epiphany web browser
wget-el — interface for wget on Emacsen
gwget — GNOME интерфейс для wget
wget — программа загрузки файлов из сети
aptitude install libqt4-gui=4.5.1-1~ppa1~jaunty1
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages are BROKEN:
libqt4-gui
0 packages upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
Need to get 0B/2,328B of archives. After unpacking 65.5kB will be used.
The following packages have unmet dependencies:
libqt4-gui: Depends: libqtgui4 (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is installed.
Depends: libqt4-svg (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is installed.
Depends: libqt4-opengl (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is installed.
Depends: libqt4-designer (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is installed.
Depends: libqt4-assistant (= 4.5.1-1~ppa1~jaunty1) but it is not installable
The following actions will resolve these dependencies:
Remove the following packages:
libqt4-core
Install the following packages:
libqt4-assistant [4.5.1-1~ppa1~jaunty1 (jaunty)]
Downgrade the following packages:
libqt4-dbus [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-designer [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-network [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-opengl [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-phonon [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-qt3support [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-script [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-sql [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-sql-psql [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-svg [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-test [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-webkit [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqt4-xml [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqtcore4 [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
libqtgui4 [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
qt4-qtconfig [4.5.3really4.5.2-0ubuntu1 (karmic, now) -> 4.5.1-1~ppa1~jaunty1 (jaunty)]
Score is -330
Accept this solution? [Y/n/q/?]apt-get install libqt4-gui=4.5.1-1~ppa1~jaunty1
Reading package lists... Done
Building dependency tree
Reading state information... 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:
libqt4-gui: Depends: libqtgui4 (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is to be installed
Depends: libqt4-svg (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is to be installed
Depends: libqt4-opengl (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is to be installed
Depends: libqt4-designer (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is to be installed
Depends: libqt4-assistant (= 4.5.1-1~ppa1~jaunty1) but 4.5.3really4.5.2-0ubuntu1 is to be installed
E: Broken packagesкомандой aptitude autoremoveТакой команды нет, скорее всего вы имели в виду apt-get autoremove.
mapk-v ~ $sudo aptitude full-upgrade
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Чтение информации о расширенных состояниях
Инициализация состояний пакетов... Готово
Следующие пакеты будут обновлены:
grub-common grub-pc libgd2-noxpm libhtml-parser-perl
4 пакетов обновлено, 0 установлено новых, 0 пакетов отмечено для удаления, и 0 пакетов не обновлено.
Необходимо получить 1 779kБ архивов. После распаковки 0Б будет занято.
Хотите продолжить? [Y/n/?]
sudo aptitude search '~U'
i A grub-common - GRand Unified Bootloader, version 2 (common files)
i A grub-pc - GRand Unified Bootloader, version 2 (PC/BIOS version)
i libgd2-noxpm - GD Graphics Library version 2 (without XPM support)
i libhtml-parser-perl - collection of modules that parse HTML text documents
mapk-v ~ $sudo aptitude search '~U'
i A grub-common - GRand Unified Bootloader, version 2 (common files)
i A grub-pc - GRand Unified Bootloader, version 2 (PC/BIOS version)
i libgd2-noxpm - GD Graphics Library version 2 (without XPM support)
i libhtml-parser-perl - collection of modules that parse HTML text documents
Таким образом, aptitude заменяет кучу инструментов. Что вам проще: запомнить кучу разных инструментов, или только один инструмент? При условии, что кроме названия, надо помнить ещё и команды?
Мне кажется, что логичнее, проще и удобнее, в этом случае aptitude.
Работает с пакетами? Неужели и функционал dpkg-utils там есть?
Кстати, много кому придёт в голову запускать отдельно препроцессор, ассемблер и линковщик
Никому ведь не придет в голову БЕЗ ОСОБОЙ НА ТО НЕОБХОДИМОСТИ вместо запуска gcc запускать отдельно препроцессор, отдельно компилятор, отдельно ассемблер, отдельно линковщик
$ apt-cache policy eclipse
eclipse:
Установлен: не установлен
Кандидат: 3.5.1+repack~1-0ubuntu1
Таблица версий:
*** 3.5.1+repack~1-0ubuntu1 0
500 http://ru.archive.ubuntu.com karmic/universe Packages
100 /var/lib/dpkg/status $ aptitude search eclipse i eclipse - Extensible Tool Platform and Java IDE i A eclipse-jdt - Eclipse Java Development Tools (JDT) i A eclipse-pde - Eclipse Plug-in Development Environment (PDE) i A eclipse-platform - Eclipse platform without plug-ins to develop any language i A eclipse-platform-data - Eclipse platform without plug-ins to develop any language (data) i A eclipse-plugin-cvs - Eclipse Team Integration (CVS support) i A eclipse-rcp - Eclipse Rich Client Platform (RCP)
aptitude vs apt. 5 причин, почему я использую aptitude