/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
root@sites:~# apt-get update
Reading package lists... Done
root@sites:~# apt-get upgrade
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:
linux-module
每当我安装任何新内核(或内核升级)时,都会出现很多错误。
我所犯的错误
sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space
每当我试图在Ubuntu上安装一个新的软件包时,都会遇到以下错误:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up linux-image-5.13.0-30-generic (5.13.0-30.33~20.04.1) ...
Set
原谅我,因为我是一个非常兴奋的,虽然是全新的Linux用户。我几天前就开始有安装的问题了。我也不能做任何备份。我所犯的错误都与linux-image-5.0.0-13-generic有关。我现在在linux-image-5.0.0-21-generic上。
在尝试运行sudo apt-get upgrade时,我得到了以下消息,我认为这可能是问题的一个线索:
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Ca
我今天升级到20.04了。在升级过程中,我收到了一条错误消息:“无法安装linux 4.15.0-142-泛型”。现在,在执行"sudo apt自动删除“时,我得到了以下输出:
jumbo@jumbo-M11AD:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED
dconf-editor libhunspell-1.6-
可能重复: 有办法删除/隐藏旧内核版本吗?
一段时间以来,我一直在我的电脑上使用双引导,在Windows 7的同时使用Ubuntu。一件非常令人不安的事情发生在Ubuntu内核被更新时(偶尔会发生这种情况)。它们作为选项添加到grub菜单中,因此,我的启动菜单现在如下所示:
Ubuntu, with linux 2.6.35-27 generic
Ubuntu, with linux 2.6.35-27 generic (recovery mode)
Ubuntu, with linux 2.6.35-25 generic
Ubuntu, with linux 2.6.35-25 gene
我在同一个磁盘上安装了Linux和Windows。最近,我决定改用不同的Linux发行版。从那以后,格鲁布失败了,掉进了救援队的外壳。我在网上发现,我可以使用以下命令启动:
set prefix=(hd0,gpt6)/boot/grub
set root=(hd0,gpt6)
insmod linux
insmod normal
normal
输入normal命令后,我将进入通常的Grub,在那里我可以选择要引导的操作系统。我试着重新安装Grub,但是实际的问题似乎是我有两个不同的Grub安装。
这些是我的分区:
Device Start End Sectors
我在我的电脑上使用Lubuntu22.04LTS,并且正在测试grub编辑。
看起来Lubuntu正在使用某种图形界面来显示grub。
📷
我可以禁用它来使用与Ubuntu默认的相同吗?
下面是我的grub配置文件: cat /etc/default/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 g
我在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
我在Ubuntu的双引导下安装了Windows来玩Skyrim,这最终导致了GRUB的崩溃。在尝试了大量的东西来修复它(包括使用引导修复)之后,我将Ubuntu安装在一个新的分区中,与旧的Ubuntu和XP并行。之后,GRUB又起作用了,我现在可以访问我以前的Ubuntu和XP了,但是现在我有了两个Ubuntus,我想放弃新的Ubuntus。我怎么才能做到这一点而又不破坏食物呢?
以下是sudo fdisk -l的结果:
Device Boot Start End Blocks Id System
/dev/sda1 *
我希望grub(2)不用等待就可以在我的主操作系统上启动。每次我启动电脑时,要么按<Enter>键,要么等10秒。grub是否可以在没有任何提示的情况下直接引导我的默认操作系统?如果是,怎么做?
关于信息,我有带有肉桂桌面的linux薄荷。
这里是我的/etc/default/grub文件:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this fi
我尝试了一切,比如手动删除24内核,但是无论我做什么,这都是我的sudo apt-get upgrade输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
linux-image-4.4.0-24-generic linux-image-extra-4.4.0-24-generic
0 upgraded, 0
我以前读过几个问题,但没有找到解决办法。在运行update-grub命令时,它给出了以下输出:
root@Agustin-Ubuntu:/home/agustin# update-grub
Generating grub.cfg ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-3.5.0-45-generic
Found initrd image: /boot
我用的是16.04,安装了win7。每当我尝试安装某件东西时,终端就会显示出大量的错误。
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.13.0-39-generic
Found initrd image: /boot/initrd.img-4.13.0-39-generic
Found linux image: /boot/vmlinuz-4.13.0-38-generic
Found initrd image: /boot/initrd.img-4.13.0-38-generic
Foun
我已经处决了
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.
这是:
我试图将我的Ubuntu18.4升级到18.10。最后,它告诉我它不能继续,因为我在/boot上没有足够的磁盘空间,因此它只进行了部分更新。我重新启动系统,出现18.10,但告诉我这只是部分升级,因为/boot上没有足够的磁盘空间。
我试图释放磁盘空间并获得以下错误:
apt autoremove
E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)
E: Unable to acquire the dpkg frontend lock (/var/lib/
我需要安装一些东西,但它说我需要删除3.11.0-12版本的额外的3.11.0-12版本-泛型。请帮帮忙。
miles@Ubuntu-PC:~$ sudo apt-get install -f
[sudo] password for miles:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-3.11.0-12-generic linux-i