* [Comm] rpm, apt, kernel-image @ 2010-08-14 16:16 Алексей Синицын 2010-08-14 16:30 ` Алексей Карпов ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Алексей Синицын @ 2010-08-14 16:16 UTC (permalink / raw) To: ALT Linux Community general discussions Здравствуйте. Никто не подскажет, с чем пожет быть связана следующая ошибка? 20:12 root@wind ~ # rpm -qa|grep kernel-image kernel-image-std-def-2.6.27-alt16 kernel-image-std-def-2.6.30-alt15 kernel-image-std-def-2.6.25-alt8.M41.1 kernel-image-std-def-2.6.30-alt14 kernel-image-std-def-2.6.25-alt6.M41.3 kernel-image-ovz-smp-2.6.32-alt1 kernel-image-std-def-2.6.27-alt15 20:12 root@wind ~ # apt-get remove kernel-image-std-def-2.6.27-alt16 Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package kernel-image-std-def-2.6.27-alt16 20:13 root@wind ~ # ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 16:16 [Comm] rpm, apt, kernel-image Алексей Синицын @ 2010-08-14 16:30 ` Алексей Карпов 2010-08-14 17:16 ` Алексей Синицын 2010-08-14 16:32 ` Alexey Tourbin 2010-08-14 16:39 ` Михаил 2 siblings, 1 reply; 12+ messages in thread From: Алексей Карпов @ 2010-08-14 16:30 UTC (permalink / raw) To: ALT Linux Community general discussions В сообщении от Суббота 14 августа 2010 22:16:24 автор Алексей Синицын написал: > Здравствуйте. Никто не подскажет, с чем пожет быть связана следующая > ошибка? > > > 20:12 root@wind ~ # rpm -qa|grep kernel-image > kernel-image-std-def-2.6.27-alt16 > kernel-image-std-def-2.6.30-alt15 > kernel-image-std-def-2.6.25-alt8.M41.1 > kernel-image-std-def-2.6.30-alt14 > kernel-image-std-def-2.6.25-alt6.M41.3 > kernel-image-ovz-smp-2.6.32-alt1 > kernel-image-std-def-2.6.27-alt15 > 20:12 root@wind ~ # apt-get remove kernel-image-std-def-2.6.27-alt16 > Reading Package Lists... Done > Building Dependency Tree... Done > E: Couldn't find package kernel-image-std-def-2.6.27-alt16 > 20:13 root@wind ~ # Всё правильно, пакет называется kernel-image-std-def, в системе представлен в нескольких вариантах. Чтобы удалить старые версии, нужно скомандовать что-то вроде apt-get remove kernel-image-std-def#2.6.27-alt15 (с точностью до номера версии, поскольку возможно использование т.н. эпохи). Алексей Турбин говорит именно об этом. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 16:30 ` Алексей Карпов @ 2010-08-14 17:16 ` Алексей Синицын 2010-08-14 18:55 ` Sergey Vlasov 2010-08-15 7:51 ` Andrey Rahmatullin 0 siblings, 2 replies; 12+ messages in thread From: Алексей Синицын @ 2010-08-14 17:16 UTC (permalink / raw) To: ALT Linux Community general discussions 14 августа 2010 г. 20:30 пользователь Алексей Карпов <aakarpov@gmail.com> написал: > В сообщении от Суббота 14 августа 2010 22:16:24 автор Алексей Синицын написал: >> Здравствуйте. Никто не подскажет, с чем пожет быть связана следующая >> ошибка? >> >> >> 20:12 root@wind ~ # rpm -qa|grep kernel-image >> kernel-image-std-def-2.6.27-alt16 >> kernel-image-std-def-2.6.30-alt15 >> kernel-image-std-def-2.6.25-alt8.M41.1 >> kernel-image-std-def-2.6.30-alt14 >> kernel-image-std-def-2.6.25-alt6.M41.3 >> kernel-image-ovz-smp-2.6.32-alt1 >> kernel-image-std-def-2.6.27-alt15 >> 20:12 root@wind ~ # apt-get remove kernel-image-std-def-2.6.27-alt16 >> Reading Package Lists... Done >> Building Dependency Tree... Done >> E: Couldn't find package kernel-image-std-def-2.6.27-alt16 >> 20:13 root@wind ~ # > > Всё правильно, пакет называется kernel-image-std-def, в системе представлен в > нескольких вариантах. Чтобы удалить старые версии, нужно скомандовать что-то > вроде > apt-get remove kernel-image-std-def#2.6.27-alt15 (с точностью до номера > версии, поскольку возможно использование т.н. эпохи). Алексей Турбин говорит > именно об этом. > Понятно, спасибо. Впрочем, помогло не сильно: 20:49 al@wind ~ $ sudo apt-get remove kernel-image-std-def#2.6.27-alt15 Reading Package Lists... Done Building Dependency Tree... Done E: Couldn't find package kernel-image-std-def#2.6.27-alt15 20:50 al@wind ~ $ Но apt-shell помог со своим автодополением. названия оказались примерно такого вида: kernel-image-std-def#1:2.6.27-alt15 , видимо помог бы и синаптик, если бы до него дошло дело. Удалять сам пакет kernel-image-std-def конечно в голову не приходило, потому что ядро по уполчанию видимо всё же необходимо. Если при его удалении они исчезнут все, то без ядра будет всё же плохо. Это просто мне показалось что шесть это всё же немного лишнего. Вообще я думал что это виртуальный пакет, но заглянув в него увидел: 20:53 al@wind ~ $ rpm -ql kernel-image-std-def|wc -l 14175 20:54 al@wind ~ $ Где файлы для всех ядер. Взяв из него произвольный файл, нашёл что он принадлежит сразу двум пакетам: 20:55 al@wind ~ $ rpm -ql kernel-image-std-def-2.6.27-alt16|grep /lib/modules/2.6.27-std-def-alt16/modules.ofmap /lib/modules/2.6.27-std-def-alt16/modules.ofmap 20:55 al@wind ~ $ rpm -ql kernel-image-std-def|grep /lib/modules/2.6.27-std-def-alt16/modules.ofmap /lib/modules/2.6.27-std-def-alt16/modules.ofmap 20:55 al@wind ~ $ rpm -qf /lib/modules/2.6.27-std-def-alt16/modules.ofmap kernel-image-std-def-2.6.27-alt16 20:57 al@wind ~ $ Видимо всё же здесь присутствует какое то особенно сильное колдунство. ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 17:16 ` Алексей Синицын @ 2010-08-14 18:55 ` Sergey Vlasov 2010-08-15 10:50 ` Алексей Синицын 2010-08-15 7:51 ` Andrey Rahmatullin 1 sibling, 1 reply; 12+ messages in thread From: Sergey Vlasov @ 2010-08-14 18:55 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 3295 bytes --] On Sat, Aug 14, 2010 at 09:16:49PM +0400, Алексей Синицын wrote: [...] > 20:49 al@wind ~ $ sudo apt-get remove kernel-image-std-def#2.6.27-alt15 > Reading Package Lists... Done > Building Dependency Tree... Done > E: Couldn't find package kernel-image-std-def#2.6.27-alt15 > 20:50 al@wind ~ $ > > Но apt-shell помог со своим автодополением. названия оказались > примерно такого вида: kernel-image-std-def#1:2.6.27-alt15 , видимо > помог бы и синаптик, если бы до него дошло дело. > > Удалять сам пакет kernel-image-std-def конечно в голову не приходило, > потому что ядро по уполчанию видимо всё же необходимо. Если при его > удалении они исчезнут все, то без ядра будет всё же плохо. Это просто > мне показалось что шесть это всё же немного лишнего. > > Вообще я думал что это виртуальный пакет, но заглянув в него увидел: > > 20:53 al@wind ~ $ rpm -ql kernel-image-std-def|wc -l > 14175 > 20:54 al@wind ~ $ > > Где файлы для всех ядер. Взяв из него произвольный файл, нашёл что он > принадлежит сразу двум пакетам: > > 20:55 al@wind ~ $ rpm -ql kernel-image-std-def-2.6.27-alt16|grep > /lib/modules/2.6.27-std-def-alt16/modules.ofmap > /lib/modules/2.6.27-std-def-alt16/modules.ofmap > 20:55 al@wind ~ $ rpm -ql kernel-image-std-def|grep > /lib/modules/2.6.27-std-def-alt16/modules.ofmap > /lib/modules/2.6.27-std-def-alt16/modules.ofmap > 20:55 al@wind ~ $ rpm -qf /lib/modules/2.6.27-std-def-alt16/modules.ofmap > kernel-image-std-def-2.6.27-alt16 > 20:57 al@wind ~ $ На самом деле это один и тот же пакет, просто в командной строке rpm в данном случае не обязательно указывать точную версию пакета (а в случае, если в rpm -q не указан номер версии, будут обработаны все установленные версии пакета). > Видимо всё же здесь присутствует какое то особенно сильное колдунство. Можно сказать и так; на самом деле на поведение apt в данном случае действуют опции, указанные в стандартном /etc/apt/apt.conf: RPM { Allow-Duplicated { // Old-style kernels. "^(NVIDIA_)?(kernel|alsa)[0-9]*(-adv|-linus)?($|-up|-smp|-secure|-custom|-enterprise|-BOOT|-tape|-aureal)"; // New-style kernels. "^kernel-(image|modules)-.*"; }; Для пакетов, имя которых соответствует одному из регулярных выражений, перечисленных в опции RPM::Allow-Duplicated, apt разрешает одновременную установку нескольких версий одного и того же пакета. Однако все внутренности apt написаны в предположении, что каждый пакет установлен в системе не более чем в одном экземпляре, поэтому для пакетов из Allow-Duplicated на самом деле каждая версия пакета представляется для apt в виде отдельного пакета, имя которого образуется присоединением к собственно имени пакета его номера версии через '#'; при этом номер версии в некоторых случаях включает epoch ("1:" в приведённом случае). Этот синтаксис отличается от используемого в rpm (где номера версии и сборки могут присоединяться к имени пакета через '-'). А настоящее имя пакета в таком случае становится для apt именем виртуального пакета, предоставляемого всеми доступными версиями (именно поэтому команда apt-get remove kernel-image-std-def не вызвала бы удаление ядра - при попытке удаления виртуального пакета apt-get выдал бы список реальных пакетов, предоставляющих это имя). [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 18:55 ` Sergey Vlasov @ 2010-08-15 10:50 ` Алексей Синицын 0 siblings, 0 replies; 12+ messages in thread From: Алексей Синицын @ 2010-08-15 10:50 UTC (permalink / raw) To: ALT Linux Community general discussions 14 августа 2010 г. 22:55 пользователь Sergey Vlasov <vsu@altlinux.ru> написал: > > На самом деле это один и тот же пакет, просто в командной строке rpm в > данном случае не обязательно указывать точную версию пакета (а в > случае, если в rpm -q не указан номер версии, будут обработаны все > установленные версии пакета). > >> Видимо всё же здесь присутствует какое то особенно сильное колдунство. > > Можно сказать и так; на самом деле на поведение apt в данном случае > действуют опции, указанные в стандартном /etc/apt/apt.conf: > > RPM > { > Allow-Duplicated { > // Old-style kernels. > "^(NVIDIA_)?(kernel|alsa)[0-9]*(-adv|-linus)?($|-up|-smp|-secure|-custom|-enterprise|-BOOT|-tape|-aureal)"; > // New-style kernels. > "^kernel-(image|modules)-.*"; > }; > > Для пакетов, имя которых соответствует одному из регулярных выражений, > перечисленных в опции RPM::Allow-Duplicated, apt разрешает > одновременную установку нескольких версий одного и того же пакета. > Однако все внутренности apt написаны в предположении, что каждый пакет > установлен в системе не более чем в одном экземпляре, поэтому для > пакетов из Allow-Duplicated на самом деле каждая версия пакета > представляется для apt в виде отдельного пакета, имя которого > образуется присоединением к собственно имени пакета его номера версии > через '#'; при этом номер версии в некоторых случаях включает epoch > ("1:" в приведённом случае). Этот синтаксис отличается от > используемого в rpm (где номера версии и сборки могут присоединяться к > имени пакета через '-'). А настоящее имя пакета в таком случае > становится для apt именем виртуального пакета, предоставляемого всеми > доступными версиями (именно поэтому команда apt-get remove > kernel-image-std-def не вызвала бы удаление ядра - при попытке > удаления виртуального пакета apt-get выдал бы список реальных пакетов, > предоставляющих это имя). > Спасибо, теперь неясностей в этом месте кажется не осталось. Может быть это стоит внести в какое нибудь место на вики? ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 17:16 ` Алексей Синицын 2010-08-14 18:55 ` Sergey Vlasov @ 2010-08-15 7:51 ` Andrey Rahmatullin 1 sibling, 0 replies; 12+ messages in thread From: Andrey Rahmatullin @ 2010-08-15 7:51 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 634 bytes --] On Sat, Aug 14, 2010 at 09:16:49PM +0400, Алексей Синицын wrote: > > apt-get remove kernel-image-std-def#2.6.27-alt15 (с точностью до номера > > версии, поскольку возможно использование т.н. эпохи). ^^^^^ > Но apt-shell помог со своим автодополением. названия оказались > примерно такого вида: kernel-image-std-def#1:2.6.27-alt15 , видимо ^^ -- WBR, wRAR (ALT Linux Team) Powered by the ALT Linux fortune(6): Есть Сизиф, который изначально динамичен (политкорректное название нестабильности). -- mithraen in devel@ [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 16:16 [Comm] rpm, apt, kernel-image Алексей Синицын 2010-08-14 16:30 ` Алексей Карпов @ 2010-08-14 16:32 ` Alexey Tourbin 2010-08-14 16:39 ` Михаил 2 siblings, 0 replies; 12+ messages in thread From: Alexey Tourbin @ 2010-08-14 16:32 UTC (permalink / raw) To: ALT Linux Community general discussions On Sat, Aug 14, 2010 at 08:16:24PM +0400, Алексей Синицын wrote: > 20:12 root@wind ~ # rpm -qa|grep kernel-image > kernel-image-std-def-2.6.27-alt16 > kernel-image-std-def-2.6.30-alt15 > kernel-image-std-def-2.6.25-alt8.M41.1 > kernel-image-std-def-2.6.30-alt14 > kernel-image-std-def-2.6.25-alt6.M41.3 > kernel-image-ovz-smp-2.6.32-alt1 > kernel-image-std-def-2.6.27-alt15 > 20:12 root@wind ~ # apt-get remove kernel-image-std-def-2.6.27-alt16 You can't use name-version-release this way with apt. Try "apt-get remove kernel-image-std-def", apt will show the list of correct tokens. > Reading Package Lists... Done > Building Dependency Tree... Done > E: Couldn't find package kernel-image-std-def-2.6.27-alt16 > 20:13 root@wind ~ # ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 16:16 [Comm] rpm, apt, kernel-image Алексей Синицын 2010-08-14 16:30 ` Алексей Карпов 2010-08-14 16:32 ` Alexey Tourbin @ 2010-08-14 16:39 ` Михаил 2010-08-16 4:19 ` REAL 2 siblings, 1 reply; 12+ messages in thread From: Михаил @ 2010-08-14 16:39 UTC (permalink / raw) To: ALT Linux Community general discussions Здравствуйте, Алексей. Вы писали 14 августа 2010 г., 20:16:24: > Здравствуйте. Никто не подскажет, с чем пожет быть связана следующая ошибка? # apt-get remove kernel-image-std-def А так? > 20:12 root@wind ~ # apt-get remove kernel-image-std-def-2.6.27-alt16 > Reading Package Lists... Done > Building Dependency Tree... Done > E: Couldn't find package kernel-image-std-def-2.6.27-alt16 -- С уважением, Михаил mailto:consc@mail.ru ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-14 16:39 ` Михаил @ 2010-08-16 4:19 ` REAL 2010-08-16 19:58 ` Михаил 2010-08-19 10:14 ` Alexey Tourbin 0 siblings, 2 replies; 12+ messages in thread From: REAL @ 2010-08-16 4:19 UTC (permalink / raw) To: ALT Linux Community general discussions Михаил пишет: >> Здравствуйте. Никто не подскажет, с чем пожет быть связана следующая ошибка? > > # apt-get remove kernel-image-std-def > > А так? >> E: Couldn't find package kernel-image-std-def-2.6.27-alt16 На самом деле так: # apt-get remove kernel-image-std-def=2.6.27-alt16 Т.е. перед номером версии должен быть знак "равно", а не "дефис" или "решётка". -- REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-16 4:19 ` REAL @ 2010-08-16 19:58 ` Михаил 2010-08-19 4:52 ` REAL 2010-08-19 10:14 ` Alexey Tourbin 1 sibling, 1 reply; 12+ messages in thread From: Михаил @ 2010-08-16 19:58 UTC (permalink / raw) To: ALT Linux Community general discussions Здравствуйте, REAL. Вы писали 16 августа 2010 г., 8:19:19: >> # apt-get remove kernel-image-std-def >> >> А так? >>> E: Couldn't find package kernel-image-std-def-2.6.27-alt16 > На самом деле так: > # apt-get remove kernel-image-std-def=2.6.27-alt16 > Т.е. перед номером версии должен быть знак "равно", а не "дефис" или > "решётка". Вот не знал. А почему собственно? Всегда решетку прописывал, и работало. -- С уважением, Михаил mailto:consc@mail.ru ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-16 19:58 ` Михаил @ 2010-08-19 4:52 ` REAL 0 siblings, 0 replies; 12+ messages in thread From: REAL @ 2010-08-19 4:52 UTC (permalink / raw) To: ALT Linux Community general discussions Михаил пишет: >> На самом деле так: >> # apt-get remove kernel-image-std-def=2.6.27-alt16 > >> Т.е. перед номером версии должен быть знак "равно", а не "дефис" или >> "решётка". > > Вот не знал. А почему собственно? Хз. > Всегда решетку прописывал, и работало. Ну у меня не работало, поэтому методом научного тыка и пришёл к знаку "равно" :) -- REAL aka Евгений Ростовцев, программист ЦНИТ КемГУ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Comm] rpm, apt, kernel-image 2010-08-16 4:19 ` REAL 2010-08-16 19:58 ` Михаил @ 2010-08-19 10:14 ` Alexey Tourbin 1 sibling, 0 replies; 12+ messages in thread From: Alexey Tourbin @ 2010-08-19 10:14 UTC (permalink / raw) To: ALT Linux Community general discussions On Mon, Aug 16, 2010 at 12:19:19PM +0800, REAL wrote: > На самом деле так: > # apt-get remove kernel-image-std-def=2.6.27-alt16 > > Т.е. перед номером версии должен быть > знак "равно", а не "дефис" или "решётка". Знак "равно" - это специальный синтаксис, который используется только на командной строке. С таким же успехом можно использовать '>=' или '<='. Этот синтаксис пасится недалеко от main и дальше от него быстро избавляются. Внутра апта он негде не используетя. Дефис с аптом использовать нельзя. Форма с решёткой - это внутреннее имя пакетов, для которых разрешено дублирование, как уже объяснил vsu. ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2010-08-19 10:14 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-08-14 16:16 [Comm] rpm, apt, kernel-image Алексей Синицын 2010-08-14 16:30 ` Алексей Карпов 2010-08-14 17:16 ` Алексей Синицын 2010-08-14 18:55 ` Sergey Vlasov 2010-08-15 10:50 ` Алексей Синицын 2010-08-15 7:51 ` Andrey Rahmatullin 2010-08-14 16:32 ` Alexey Tourbin 2010-08-14 16:39 ` Михаил 2010-08-16 4:19 ` REAL 2010-08-16 19:58 ` Михаил 2010-08-19 4:52 ` REAL 2010-08-19 10:14 ` Alexey Tourbin
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git