Различное окрашивание вывода в MOTD и частях выполнения

Из:http://forums.debian.net/viewtopic.php?f=5&t=126806

At one time, you had a repository with the release name "stable-updates" in your sources, and set Synaptic to prefer packages from that repository in its settings. Then the repository was removed, and Synaptic is freaking out. (Sort of a bug, IMO) I believe that setting is in the /root/.synaptic/synaptic.conf file if you have a root account, and kmathern has come up with this code to fix the setting:

su -c "sed -i 's/DefaultDistro \".*\"/DefaultDistro \"\"/' /root/.synaptic/synaptic.conf"

1
21.11.2019, 20:57
1 ответ

При входе нет run-parts /etc/update-motd.d. run-partsпроисходит время от времени, не -интерактивно , для обновления /etc/motd.

По умолчанию grepне отображает цвета при работе не -в интерактивном режиме (по уважительной причине ). Вы можете попробовать grep --color=always, возможно TERM=xterm grep --color=always.

Используйтеsudo update-motd(8 )для немедленного обновления /etc/motdи просмотра обновленного файла.

2
27.01.2020, 23:29

Теги

Похожие вопросы