Не удалось удалить старые изображения ядра из-за неудовлетворенных зависимостей?

Хорошо. Я собираюсь ответить на свой вопрос только для справок в будущем. В моем случае, что я сделал, добавьте следующие строки (это действительно одна строка с кучей комментариев, чтобы напомнить мне, почему и что я там сделал) до /etc/rc.local до exit 0:

# The following line should solve the problem of Ubuntu resetting
# the brightness level back to maximum after every reboot.

echo 50 > /sys/class/backlight/radeon_bl0/brightness

Вот как выглядит весь файл сейчас:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# The following line should solve the problem of Ubuntu resetting
# the brightness level back to maximum after every reboot.
echo 50 > /sys/class/backlight/radeon_bl0/brightness

exit 0

Хотя я не уверен на сто процентов, если это лучший способ сделать это, все, кажется, работает отлично для меня Теперь.

1
задан 10 November 2017 в 00:05

4 ответа

Как я обычно справляюсь с этой проблемой (относительно старых ядер) с помощью

удаление зависимых пакетов (в любом случае это в основном мета-пакеты) очистка / освобождение дискового пространства, переустановка этих метапакетов

В вашем случае я начну с

sudo apt remove linux-image-generic linux-headers-generic linux-generic

, и после очистки вы восстановите старую ситуацию с помощью

sudo apt install linux-generic

(это приведет к тому, что другой мета-пакеты)

0
ответ дан 18 July 2018 в 03:34

Прочитайте man apt-get, особенно части о

-m, --ignore-missing, --fix-missing Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation (particularly if it is mentioned on the command line) and it could not be downloaded then it will be silently held back. Configuration Item: APT::Get::Fix-Missing.
0
ответ дан 18 July 2018 в 03:34

Как я обычно справляюсь с этой проблемой (относительно старых ядер) с помощью

удаление зависимых пакетов (в любом случае это в основном мета-пакеты) очистка / освобождение дискового пространства, переустановка этих метапакетов

В вашем случае я начну с

sudo apt remove linux-image-generic linux-headers-generic linux-generic

, и после очистки вы восстановите старую ситуацию с помощью

sudo apt install linux-generic

(это приведет к тому, что другой мета-пакеты)

0
ответ дан 24 July 2018 в 17:52

Прочитайте man apt-get, особенно части о

-m, --ignore-missing, --fix-missing Ignore missing packages; if packages cannot be retrieved or fail the integrity check after retrieval (corrupted package files), hold back those packages and handle the result. Use of this option together with -f may produce an error in some situations. If a package is selected for installation (particularly if it is mentioned on the command line) and it could not be downloaded then it will be silently held back. Configuration Item: APT::Get::Fix-Missing.
0
ответ дан 24 July 2018 в 17:52

Другие вопросы по тегам:

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