相关疑难解决方法(0)

如何解决我的语言环境问题?

每次我执行诸如启动或停止服务之类的操作时都会收到此消息。

perl: warning: Setting locale failed.   
perl: warning: Please check that your locale settings:   
        LANGUAGE = "en_US:en",   
        LC_ALL = (unset),   
        LC_MESSAGES = "en_US.UTF-8",   
        LANG = "en_US.UTF-8"   
    are supported and installed on your system.   
perl: warning: Falling back to the standard locale ("C").   
locale: Cannot set LC_CTYPE to default locale: No such file or directory   
locale: Cannot set LC_MESSAGES to default locale: No such file or directory   
locale: Cannot set LC_ALL to default locale: No such file or directory   
(Reading database …
Run Code Online (Sandbox Code Playgroud)

server command-line locale

558
推荐指数
15
解决办法
104万
查看次数

apt-get 不会升级旧的 generic-pae

运行 #apt-get upgrade 我被告知运行sudo apt-get -f install. 我这样做并看到:

The following extra packages will be installed:
  linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
The following packages will be upgraded:
  linux-generic-pae linux-headers-generic-pae linux-image-generic-pae
3 upgraded, 0 newly installed, 0 to remove and 138 not upgraded.
3 not fully installed or removed.
Need to get 0 B/6,460 B of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
dpkg: dependency problems prevent configuration of …
Run Code Online (Sandbox Code Playgroud)

upgrade apt

8
推荐指数
1
解决办法
5727
查看次数

损坏的内核包阻止安装/更新

首先,我查看了有关此主题的各种其他问题和答案,但它们并没有解决我的问题,所以我不是在没有长时间在 Google 和这里​​停留的情况下就冲进去的。此外,没有单独的引导分区,并且有足够的可用空间。

我在 16.04 上,我认为发生的事情是我的笔记本电脑在运行更新时重新启动或崩溃。当然,当我回到它时它出乎意料地关闭了,现在我无法使用 apt-get 安装任何东西。在我寻求解决方案的过程中,当时唯一的主要变化是我尝试按照某处的建议强制删除 linux-generic,但尽管成功删除了软件包,但它不会重新安装。

目前我已经能够回退到内核 4.8.0-54-generic,它运行得相当好(我现在正在使用笔记本电脑)。

我将从 dpkg --audit 开始:

The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 linux-generic-hwe-16.04 Complete Generic Linux kernel and headers
 linux-image-extra-4.8.0-56-generic Linux kernel extra modules for version 4.8.
 linux-image-extra-4.8.0-58-generic Linux kernel extra modules for version 4.8.
 linux-image-generic-hwe-16.04 Generic Linux kernel image

The following packages are only half configured, probably due …
Run Code Online (Sandbox Code Playgroud)

package-management apt dpkg 16.04

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

apt ×2

16.04 ×1

command-line ×1

dpkg ×1

locale ×1

package-management ×1

server ×1

upgrade ×1