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
我有我的grub菜单显示在启动时,它不应该。我试过了下面是,但还是不能用。这里供参考的是grub.cfg文件的内容:
# 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 'Simple configuration'
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOU
每当我试图在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
我试图安装新内核,但是出了问题,我现在正试图删除它。误差按摩师是:
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
我有一个纯Ubuntu笔记本电脑(没有双重启动)。今天,当我重新开始的时候,突然出现了grub菜单。在我选择Ubuntu之后,它会像往常一样引导。所以我的问题是:
为什么它突然出现了?
我怎么把它藏起来?
编辑: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
我正在内核5.11.0-22-泛型上运行Ubuntu21.04。今天,它自动更新了我的NVIDIA驱动程序,从那时起,当sudo apt upgrade我得到:
$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have
在最近的更新之后,我无法启动我的系统(黑屏幕)。所以我关掉了电脑,又把它打开了。
查看了以下grub菜单:
Ubuntu
Advanced options for Ubuntu
System setup
我选择了“Ubuntu的高级选项”,并看到:
Ubuntu, with Linux 4.2.0-42-generic
Ubuntu, with Linux 4.2.0-42 ... (recovery mode) ...
Ubuntu, with Linux 4.2.0-41-generic
Ubuntu, with Linux 4.2.0-41 ... (recovery mode) ...
我在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时,如何解决此错误?
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional d
$ 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 grub -n 'Simple config="quiet splash acpi_backlight=vendor"
GRUB_CMDLINE_LINUX=""uration
我以前读过几个问题,但没有找到解决办法。在运行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
/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
我正在尝试将Ubuntu12.04LTS的内核从3.4.0更新到最新的可用版本,但是无论我做什么,uname -r都会继续返回3.4.0。我也多次尝试重新启动我的系统,但没有效果。
sudo update-grub的输出如下:
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.5.0-19-generic
Found initrd image: /boot/initrd.img-3.5.0-19-generic
Found linux image: /boot/vmlinuz-3.4.0-030400-generic-pae
我正在Ubuntu16.04上安装Virtualbox。当我试图打开它时,它会给我一个错误,告诉我要运行sudo /sbin/vboxconfig。运行此命令将产生以下输出:
vboxdrv.sh: Building VirtualBox kernel modules.
This system is not currently set up to build kernel modules (system extensions).
Running the following commands should set the system up
由于这只虫子,我的计算机无法用load_video或gfxmode启动
如何编辑grub以删除这2行?
$ more /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 grub -n 'Simple configuration'
GRUB_DEFAULT=0
更新-grub返回:
/usr/sbin/grub-mkconfig: 12: /etc/default/grub: GRUB_CMDLINE_LINUX=acpi_osi=Linux acpi_backlight=vendor: not found
此外,apt-get升级命令没有成功执行,它以以下消息结束:
/var/lib/dpkg/info/grub-pc.config: 12: /etc/default/grub: GRUB_CMDLINE_LINUX=acpi_osi=Linux acpi_backlight=vendor: not found
dpkg: error proc