суббота, 28 октября 2023 г.

обновление debian 10->11 - ошибка

 заменяем sources.list 

The following packages have unmet dependencies:

 libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) 

but 8.3.0-6+rpi1 is to be installed

Нужно:

sudo apt update

sudo apt install libgcc-8-dev gcc-8-base

sudo apt full-upgrade


И возможно - надо не пропустить ещё блок
When it completes, edit /boot/config.txt.
Comment out any lines which contain "dtoverlay=vc4-fkms-v3d" by putting a # sign at the start of the line.
At the bottom of the file, in the [all] section, add the line "dtoverlay=vc4-kms-v3d" - note that is "kms", not "fkms".

среда, 11 октября 2023 г.

четверг, 5 октября 2023 г.

WSL 1 + ubuntu 22 + vim = replace mode при открытии файла

 Обнаружена крайне неприятная бага именно с убунтой 22.04 (проверено 18.04, 20.04 - там всё ок): открываем любой файл и он открывается сразу в режиме REPLACE. Нужно нажать esc сначала.

https://github.com/microsoft/terminal/issues/1637

Баг заведён в 2020, воз и ныне там.

Быстрофикс: в ~/.vimrc добавить

set t_u7=
# alternatively set ambw=double