亚马逊网络服务上的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
我有点卡住了,还是个初学者。在升级过程中,我的dev/sda1 1似乎达到了容量。
sudo apt-get 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 following packages have unmet dependencies:
linux-image-extra-4.4.
来自apt-get的输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aptitude-common libboost-iostreams1.53.0 libcwidget3 libept1.4.12
Suggested packages:
aptitude-doc-en aptitude-doc tasksel debtags libcwid
无论我尝试做什么,无论是安装新软件,还是尝试sudo apt-获得升级。
有时我总是出错:(当我尝试sudo apt升级时)
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
linux-image-generic-hwe
我正在使用buildroot来构建linux固件。我怎样才能只重新构建linux内核(而不需要构建一个小时的整个程序)?
我试过-
make linux-rebuild
但那可不是干净的。
我也试过
make linux-reconfigure && make linux-rebuild
但这也不起作用。
我运行了这个命令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:
我可以在引导条目中看到3.5.0-36的条目。但是,我无法删除它,因为没有包要删除。
有关详细信息,请参阅下面的命令输出。
1)指挥:
sudo update-grub2
产出:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-75-generic
Found initrd image: /boot/initrd.img-4.4.0-75-generic
Found linux image: /boot/vmlinuz-4.4.0-72-generic
Found initrd imag
每当我安装任何新内核(或内核升级)时,都会出现很多错误。
我所犯的错误
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
最近,我的笔记本电脑断电了几次,现在,每当我尝试执行包操作时,我都会得到以下错误代码。我试着在论坛上寻找一个解决方案,但这些要么需要一个包操作,要么没有人回答。“'uname -r”告诉我,我的内核是3.11.0-17-泛型,但似乎我的内核标题是3.11.0-18-泛型。我尝试引导旧的内核版本来修复这个问题,但是我遇到了同样的错误。有人知道我能做什么吗?
sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Do
我的文件包含以下几行
File.txt
Unix is good
Linux and unix is different?
Linux is also good, then what about unix?
这里我要输出
(1st line blank)
Linix and
Linux is also good, then what about
在这里vi命令或任何其他命令都会给出这个输出?搜索特定的单词,如果这是对的话,然后删除那个词,然后删除该行中的所有单词。
我的/boot是100%。当我运行aptitude search ~ilinux-image时,我会得到大量未使用的图像。当我尝试删除其中一个(在通过执行uname -r检查当前正在使用的一个)之后,例如apt-get autoremove linux-image-3.2.0-44-generic,我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install'
我有多个命名相似的文件。他们名字的不同只是一个递增的数字。例如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
我刚跑了:
sudo apt-get update && sudo apt-get dist-upgrade
这是我从第二个命令中得到的输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed
linux-headers-4.4.0-38 linux-headers-4.4.0-38-gen
我收到了这个错误
The following packages have unmet dependencies:
linux-image-oem-20.04b : Depends:
linux-image-5.10.0-1049-oem but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
我几乎什么都试过了,它不允许我安装、删除或更新任何东西,我也尝试过手动安装
dpkg: error processing linux-generic,在sudo apt-get install -f时遇到依赖错误
Setting up linux-image-generic (3.2.0.60.71) ...
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.58.69); however:
Version of linux-image-generic on system i
当我最近运行它的时候,它给我看了这个
~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
linux-headers-5.15.0-46 linux-headers-5.15.0-46-generic linux-image-5.15.0-46-generic linux-modules-5.15.0-46-generic l