* [sisyphus] Disttag и восстановление после сбоя
@ 2019-08-27 16:14 Sergei Epiphanov
2019-08-27 16:29 ` Aleksey Borisenkov
0 siblings, 1 reply; 6+ messages in thread
From: Sergei Epiphanov @ 2019-08-27 16:14 UTC (permalink / raw)
To: sisyphus
Сегодня столкнулся с проблемой. При обновлении системы с Сизифом произошёл
сбой компьютера, в результате чего в базе RPM остались и старые, и новые
пакеты. Причём есть в том числе и те, которые отличаются только по disttag,
а версии одинаковые. apt-get --fix-broken update или dist-upgrade
избавления не дают. Вручную исправлять 500+ пакетов не на один день работы.
apt-get удалять пакеты с указанием disttag не хочет, пишет, что такого
пакета не существует, rpm показывает disttag только при невозможности
удалить пакет с одинаковой версией, но с disttag удаляет.
Как это можно автоматизировать?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Disttag и восстановление после сбоя
2019-08-27 16:14 [sisyphus] Disttag и восстановление после сбоя Sergei Epiphanov
@ 2019-08-27 16:29 ` Aleksey Borisenkov
2019-08-27 16:32 ` Sergei Epiphanov
2019-08-27 16:35 ` Sergei Epiphanov
0 siblings, 2 replies; 6+ messages in thread
From: Aleksey Borisenkov @ 2019-08-27 16:29 UTC (permalink / raw)
To: sisyphus
27.08.2019 20:14, Sergei Epiphanov пишет:
> Сегодня столкнулся с проблемой. При обновлении системы с Сизифом
> произошёл сбой компьютера, в результате чего в базе RPM остались и
> старые, и новые пакеты. Причём есть в том числе и те, которые отличаются
> только по disttag, а версии одинаковые. apt-get --fix-broken update или
> dist-upgrade избавления не дают. Вручную исправлять 500+ пакетов не на
> один день работы. apt-get удалять пакеты с указанием disttag не хочет,
> пишет, что такого пакета не существует, rpm показывает disttag только
> при невозможности удалить пакет с одинаковой версией, но с disttag удаляет.
>
> Как это можно автоматизировать?
А этот, новомодный "apt-get dedup" не помогает? Вроде для такого его и
придумывали.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Disttag и восстановление после сбоя
2019-08-27 16:29 ` Aleksey Borisenkov
@ 2019-08-27 16:32 ` Sergei Epiphanov
2019-08-27 16:35 ` Sergei Epiphanov
1 sibling, 0 replies; 6+ messages in thread
From: Sergei Epiphanov @ 2019-08-27 16:32 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
Вылетел из головы, опробую завтра.
Aleksey Borisenkov <grizlik78@gmail.com> 27 августа 2019 г. 19:29:46 написал:
> 27.08.2019 20:14, Sergei Epiphanov пишет:
>> Сегодня столкнулся с проблемой. При обновлении системы с Сизифом
>> произошёл сбой компьютера, в результате чего в базе RPM остались и
>> старые, и новые пакеты. Причём есть в том числе и те, которые отличаются
>> только по disttag, а версии одинаковые. apt-get --fix-broken update или
>> dist-upgrade избавления не дают. Вручную исправлять 500+ пакетов не на
>> один день работы. apt-get удалять пакеты с указанием disttag не хочет,
>> пишет, что такого пакета не существует, rpm показывает disttag только
>> при невозможности удалить пакет с одинаковой версией, но с disttag удаляет.
>>
>> Как это можно автоматизировать?
>
> А этот, новомодный "apt-get dedup" не помогает? Вроде для такого его и
> придумывали.
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Disttag и восстановление после сбоя
2019-08-27 16:29 ` Aleksey Borisenkov
2019-08-27 16:32 ` Sergei Epiphanov
@ 2019-08-27 16:35 ` Sergei Epiphanov
2019-08-27 16:50 ` Aleksey Borisenkov
1 sibling, 1 reply; 6+ messages in thread
From: Sergei Epiphanov @ 2019-08-27 16:35 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
Кстати, об этом новомодном dedup совершенно ничего не говорится в
сообщениях apt-get. Вместо этого он предлагает update или вместе с опцией
--fix-broken.
За подсказку спасибо большое.
Aleksey Borisenkov <grizlik78@gmail.com> 27 августа 2019 г. 19:29:46 написал:
> 27.08.2019 20:14, Sergei Epiphanov пишет:
>> Сегодня столкнулся с проблемой. При обновлении системы с Сизифом
>> произошёл сбой компьютера, в результате чего в базе RPM остались и
>> старые, и новые пакеты. Причём есть в том числе и те, которые отличаются
>> только по disttag, а версии одинаковые. apt-get --fix-broken update или
>> dist-upgrade избавления не дают. Вручную исправлять 500+ пакетов не на
>> один день работы. apt-get удалять пакеты с указанием disttag не хочет,
>> пишет, что такого пакета не существует, rpm показывает disttag только
>> при невозможности удалить пакет с одинаковой версией, но с disttag удаляет.
>>
>> Как это можно автоматизировать?
>
> А этот, новомодный "apt-get dedup" не помогает? Вроде для такого его и
> придумывали.
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Disttag и восстановление после сбоя
2019-08-27 16:35 ` Sergei Epiphanov
@ 2019-08-27 16:50 ` Aleksey Borisenkov
2019-08-28 6:35 ` Sergei Epiphanov
0 siblings, 1 reply; 6+ messages in thread
From: Aleksey Borisenkov @ 2019-08-27 16:50 UTC (permalink / raw)
To: sisyphus
27.08.2019 20:35, Sergei Epiphanov пишет:
> Кстати, об этом новомодном dedup совершенно ничего не говорится в
> сообщениях apt-get. Вместо этого он предлагает update или вместе с
> опцией --fix-broken.
dedup, кстати, из пакета apt-scripts. Оригинальный апт про него,
разумеется, ничего не знает. Хотя нашему, возможно, не мешало бы и
рассказать, да.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sisyphus] Disttag и восстановление после сбоя
2019-08-27 16:50 ` Aleksey Borisenkov
@ 2019-08-28 6:35 ` Sergei Epiphanov
0 siblings, 0 replies; 6+ messages in thread
From: Sergei Epiphanov @ 2019-08-28 6:35 UTC (permalink / raw)
To: ALT Linux Sisyphus discussions
Пробую этот вариант, но как-то немного не по себе от его фразы, что будет
освобождено 5ГБ места. Проверка показала, что после её выполнения
оставшиеся пакеты не остались без файлов, одинаковых с такими же в старых.
Но вот почему я не могу передать на вход apt полное имя пакета со всеми
версиями, disttag и т.д., которые он сам же и выводит - не знаю. Так уже
сам давно бы исправил. Может, ему нужен немного другой формат строки?
И, похоже, лучше эту опцию втащить поближе к apt, а не держать в отдельном
пакете (который у меня и не стоял). Всё-таки это аварийный рычаг, который
лучше иметь под рукой.
Aleksey Borisenkov <grizlik78@gmail.com> 27 августа 2019 г. 19:51:19 написал:
> 27.08.2019 20:35, Sergei Epiphanov пишет:
>> Кстати, об этом новомодном dedup совершенно ничего не говорится в
>> сообщениях apt-get. Вместо этого он предлагает update или вместе с
>> опцией --fix-broken.
>
> dedup, кстати, из пакета apt-scripts. Оригинальный апт про него,
> разумеется, ничего не знает. Хотя нашему, возможно, не мешало бы и
> рассказать, да.
> _______________________________________________
> Sisyphus mailing list
> Sisyphus@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sisyphus
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2019-08-28 6:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 16:14 [sisyphus] Disttag и восстановление после сбоя Sergei Epiphanov
2019-08-27 16:29 ` Aleksey Borisenkov
2019-08-27 16:32 ` Sergei Epiphanov
2019-08-27 16:35 ` Sergei Epiphanov
2019-08-27 16:50 ` Aleksey Borisenkov
2019-08-28 6:35 ` Sergei Epiphanov
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git