我在Xubuntu 18.04遇到了一个很奇怪的问题.我在sudo apt update之后运行了以下命令:
sudo apt upgrade
但它会导致一个错误:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out
我今天运行了sudo apt-get dist-upgrade,它安装了linux-image 3.13.0-68。
这似乎破坏了一些东西,因为服务器不会启动。
但是,如果我选择了以前的版本,比如3.13.0-67,那么服务器就可以启动了。
默认情况下,我如何使它从3.13.0-67开始?
如果下次有内核更新,我还可以选择升级吗?
根据我所读到的,一个人显然可以编辑/etc/default/grub,但我并没有把我的头绕在它周围。
以下是该文件的内容,以防有帮助:
# If you change this file, run 'update-grub' afterwards t
我试图安装新内核,但是出了问题,我现在正试图删除它。误差按摩师是:
mhd@Tarek-Laptop:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-2.6.37-020637-generic
0 upgraded, 0 newly installed, 1 to remove and 9 n
/usr/share/grub/default/grub和/etc/default/grub的用途是什么?我应该编辑哪一个使grub的行为有所不同?(如果您知道,两个不同的grub文件的技术或历史原因是什么?)
两个文件的内容是一样的..。
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n
我正在构建从/media/src_prog/linux-3.5/到/media/sda5_k/的内核(3.5)。我经历了以下步骤:
make O=/media/sda5_k/ menuconfig
make -j2 O=/media/sda5_k/
make O=/media/sda5_k/ modules_install
谈到make O=/media/sda5_k/ install,我得到的只有:
[root@localhost linux-3.5]# make O=/media/sda5_k/ install
sh /media/src_prog/linux-3.5/arch/x86/b
刚刚完成更新从17.10到18.04,似乎不能更新或检索任何新的软件包。
下面是我从sudo返回的错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
gnome-tweak-tool libboost-chrono1.62.0 li
我已经处决了
dpkg -l | grep linux-image
之后,我用命令删除了旧内核。
sudo apt-get purge linux-image-3.19.0-32-generic
我保留了linux-image-3.19.0-**37(and33),在清除过程结束时,我得到了以下消息:
Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT
is set is no longer supported.
这是:
在升级之后,除了我想更新/升级/安装包之外,dpkg无法删除旧的未使用的内核。
运行sudo apt upgrade后,会发生以下错误:
The following packages will be REMOVED:
linux-image-4.4.0-210-generic
The following packages have been kept back:
gimp-gmic php-curl
0 upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
9 not fully installed or remove
我想永久地更改CentOS 7中的时钟源。
Permanently, adding clocksource= to the kernel stanza:
title Red Hat Enterprise Linux Server (2.6.32-71.18.2.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-71.18.2.el6.x86_64 ro root=LABEL=/ crashkernel=auto
clocksource=acpi_pm
initrd /initramfs-2.6.32-71.18.
当更新grub时,手动或运行apt升级时都会出现错误。这是输出:
{
Generating grub configuration file ...
Configuration setting "types" invalid. It's not part of any section.
Configuration setting "types" invalid. It's not part of any section.
Configuration setting "types" invalid. It's no