Re: захолдить изменения в пакете

Sohin Vyacheslav <[email protected]>
Newsgroups gmane.linux.debian.user.russian
Message-ID <[email protected]>

24.12.2019 11:18, Sohin Vyacheslav пишет:
> 
> А таким образом можно:
> # dpkg-divert --divert /tmp/sa-compile --rename /usr/bin/sa-compile
> 
> где /tmp/sa-compile - модифицированный мной файл
> /usr/bin/sa-compile - оригинальный файл

Сделал так:
# dpkg-divert --divert /usr/bin/sa-compile --rename 
/home/slawa/tmp/sa-compile

Теперь после попытки обновления до buster версии:
# apt-get install sa-compile
или
# apt-get -f install sa-compile

Распаковывается sa-compile (3.4.2-1+deb10u1) на замену (3.4.2-1+deb9u2)...
dpkg: ошибка при обработке архива 
/var/cache/apt/archives/sa-compile_3.4.2-1+deb10u1_all.deb (--unpack):
попытка переписать "/usr/bin/sa-compile", являющийся отклоненной версией 
"/home/slawa/tmp/sa-compile"
При обработке следующих пакетов произошли ошибки:
/var/cache/apt/archives/sa-compile_3.4.2-1+deb10u1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


--
BW,
Сохин Вячеслав
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.