我有个问题,我的pc在每次启动时都会进入模式grub救援,我知道引导的顺序。
set prefix=(hd1,msdos5)/boot/grub
insmod normal
normal
在此之后,系统启动正常(我有双系统,有双硬盘驱动器,windows和Ubuntu 17.10,windows C生活在ssd,sdb单元,linux和windows驱动器d生活在一个正常的硬盘sda中),但我厌倦了这样做
这种情况发生在我重新安装系统(因为我破坏了gui的依赖)之后,我尝试了所有的解决方案:
update-grub
grub-install
手动设置:
sudo grub-i
NTFS signature is missing.
Failed to mount '/dev/vdb': Invalid argument
The device '/dev/vdb' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
[附加信息]
我用Windows 10和Ubuntu18.04安装了双系统。在安装了anaconda、tensorflow、keras、py手电筒之后,我重新启动了我的计算机,下面是黑屏幕上的一个错误:
Platform does not support this image
Failed to read header: Unsupported
Failed to load image: Unsupported
start_image() returned Unsupported
📷
因此,我无法进入Ubuntu18.04系统。在尝试使用引导修复工具之后,它仍然无法工作。
我正在开发一个工具,它可以从python中跟踪对给定对象的所有引用中获益。
具体来说,我想做一个测试加倍系统,它可以替换给定类型的所有模块级属性。例如,假设以下代码位于模块c中:
from a import b
如果a是一个模块,则b是对名为a.b的对象的引用,但它是一个单独的引用。如果我的测试双系统稍后取代了a.b,c.b将仍然引用原始对象。
我想让我的工具跟踪a.b的所有任务到别名,但是模块级的别名将朝着我的目标走很长的路。
比方说,我想要的是覆盖Module.__setattribute__
def __setattribute__(self, name, value):
if
我在网上搜索过,我在终点站接受了建议,没有人为我工作过。下面是我正在讨论的问题。似乎清除旧内核的代码已被破坏,但要修复它,我需要更多的空间,这是我的全部目的。我对Linux非常陌生,绝不是一个程序员,所以请跟我说清楚。
$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The follow
亚马逊网络服务上的EC2机器充满了多个linux头文件,目前磁盘空间已经100%满了。我运行了像apt-get autoremove这样的命令,但是它抛出了一个错误
No apport report written because the error message indicates a disk full error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
我可以通过rm命令删除旧的标头吗?安全吗?如果我使用rm命令删除,我应该在那之后做任何清理吗?以下是headers列表:
du -h -d
我已经打电话给apt-get purge来卸载旧内核。但是在清除过程中发生了一些错误,导致文件夹被留下。它说文件夹不是空的,所以不能删除。要释放磁盘空间,可以手动删除已清除的文件夹吗?
1.1M ./4.15.0-20-generic
60M ./4.15.0-32-generic <-- I've purged this
60M ./4.15.0-30-generic <-- and this
236M ./4.15.0-33-generic <-- this is my current one
我也可以移除其中一些包吗?
un lin
如果运行建议的命令行,安全性如何。有窃听器吗?
The following packages were automatically installed and are no longer required:
linux-headers-4.15.0-32 linux-headers-4.15.0-32-generic
linux-headers-4.15.0-33 linux-headers-4.15.0-33-generic
linux-headers-4.15.0-34 linux-headers-4.15.0-34-generic
linux-image-4.15.0-
每当我安装任何新内核(或内核升级)时,都会出现很多错误。
我所犯的错误
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
在sudo apt upgrade期间,我得到以下错误。也在sudo apt autoremove --purge上。
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk sp
我运行了这个命令sudo apt-get install tor-browser并得到了这个输出。我是否应该像上面提到的那样应用自动删除?
sudo apt-get install tor-browser
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
我有多个命名相似的文件。他们名字的不同只是一个递增的数字。例如linux内核:
rc linux-image-3.2.0-29-generic 3.2.0-29.46 Linux kernel image for version 3.2.0 on 64 bit x86 SMP
rc linux-image-3.2.0-31-generic 3.2.0-31.50 Linux kernel image for version 3.2.0 on
我成功升级了。现在,当我运行这个:
dpkg --list | grep linux-image
我明白了:
ii linux-image-3.13.0-24-generic 3.13.0-24.47 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
rc linux-image-4.4.0-31-generic
我遇到了一个完整的/boot问题。所以我决定删除旧的linux映像。然而,在这个过程中,我意外地删除了当前正在使用的图像。这将是LinuxImage3.2.0-53-Ubuntu12.04上的通用版本。
尝试apt-get -f安装的结果如下:
dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.54.64); however:
Version of linux-image-server on system is 3.2.0.
我的/boot/分区已经满了,我不能清除旧内核,我已经尝试了这里的建议,但没有运气如何在/中释放更多的空间?
dpkg -l linux-image-\* | grep ^ii
ii linux-image-4.4.0-71-generic 4.4.0-71.92 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-72-generic 4.4.0-72.93 amd64 Linux kernel image for ver
Apt似乎无法为我做任何有用的事情,反复给出这种形式的信息:
dpkg: dependency problems prevent configuration of linux-server:
linux-server depends on linux-image-server (= 3.2.0.37.44); however:
Version of linux-image-server on system is 3.2.0.37.45.
linux-server depends on linux-headers-server (= 3.2.0.37.44); however:
Ve
我正试图为android的pjsip构建这样的文件。
在遵循此链接中提到的步骤之后
在这些步骤之前,我能够成功地构建。
$ ./configure-android
$ make dep && make clean && make
当试图构建示例pjsua2应用程序时,它会抛出此错误。
Makefile importsym.py java pjsua2.i python symbols.i symbols.lst Warning **: file symbols.i is out of date. Run make symbol.
for dir in java
所以apt-get告诉我使用-f安装
guy@server:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
linux-headers-3.13.0-32 linux-headers-3.
我有7Gb的空间但是..。
~ # dpkg --configure -a
Setting up linux-image-2.6.32-31-generic-pae (2.6.32-31.61) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-31-generic-pae
gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.32-31-generic-pae
Failed