root@mc:/home/sdtd# apt-get install rpm
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-server : Depends: linux-image-server (= 3.2.0.3
我遇到了一个完整的/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.
每当我尝试安装任何东西时,我都会收到以下消息:
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:
clang : Depends: clang-3.4 (>= 3.4~rc3-1~) but it is not go
当我在终端中使用sudo apt-get -f install时,会发生以下情况:
Do you want to continue? [Y/n] y
(Reading database ... 237694 files and directories currently installed.)
Preparing to unpack .../linux-tools-3.16.0-31_3.16.0-31.41_amd64.deb ...
Unpacking linux-tools-3.16.0-31 (3.16.0-31.41) ...
dpkg: error processing archi
当我试着跑步时:
sudo apt-get upgrade
我收到以下错误消息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic-hwe-16.04 linux-headers-generic-hwe-16.04
linux-image-generic-hwe-16.04
当我运行Update并尝试安装某件东西时,当它启动时,它会说:“准备包”而什么也不会发生。
有什么想法吗?
这种情况发生在我选择的任何包中。
ubuntu版本: 10.04
例如
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-header
在尝试卸载php7.0时,我得到了以下错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'php7.0' is not installed, so not removed
The following packages were automatically installed and are no longer required:
linux-headers-4.4.0-92 linux-headers-4.4.
我只是尝试使用sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04安装HWE堆栈,但它没有完全安装。没有生成引导映像,也没有在/lib/modules中为它加载任何内容,等等。我做错了什么?
安装命令的输出:
The following NEW packages will be installed:
linux-generic-hwe-18.04 xserver-xorg-hwe-18.04
0 upgraded, 2 newly installed, 0 to re
我想用apt-get设置一个git服务器。下面是它的运行过程:
# apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
linux-image-4.4.0-53-generic
Use 'apt autoremove' to remov
我正在使用apt-get、cpp-4.7.arm-linux-gnueabihf和gcc-4.7.arm-linux-gnueabihf在Debian8.3Jessie中安装一些开发工具,但是libmpc2存在依赖问题。
root@debian-host:~# apt-get install cpp-4.7.arm-linux-gnueabihf gcc-4.7.arm-linux-gnueabihf
Reading package lists... Done
Building dependency tree
Reading state information... Done
N
我无法通过ssh安装一个新的软件包。
sudo apt-get install default-jdk
给出以下错误:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
default-jdk : Depends: default-jre (= 2:1.8-56ubuntu2) but it is not going to be installed
Depends: d
我按照指令从这个答案(https://stackoverflow.com/questions/39928340/how-to-start-an-android-emulator-in-ubuntu-16-04)运行AVD仿真器。
在运行sudo apt-get install lib64stdc++6:i386时,我会得到以下错误:-
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. Thi
我试图使用命令sudo pip install scrapy安装scrapy,但是我收到了一条错误消息,其结尾如下:
build/temp.linux-x86_64-2.7/_openssl.c:429:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
--------------------------
每次我尝试使用时,都会收到一条错误消息,上面写着“在修复包目录之前不能安装或删除项目”。当我试图修理时,它会说“安装或拆除一个包裹失败了”。
在细节部分,它说:
installArchives() failed: dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-image-generic (= 3.2.0.38.46); however:
Version of linux-image-generic on system is 3.2.0.58.
我遵循这个答案中给出的描述,当apt询问我是否要删除包时,它们会被列出一个星号。
命令是
sudo apt-get purge linux-image-3.13.0-{32,43,44,46}-generic
得到的提示是
The following packages will be REMOVED:
linux-image-3.13.0-32-generic* linux-image-3.13.0-43-generic*
linux-image-3.13.0-44-generic* linux-image-3.13.0-46-generic*
linux-image-extra-
定期更新失败的消息如下:
以前的安装还没有完成,安装可能因为相应软件包中的错误而失败,或者是以不友好的方式取消了安装。在安装或删除任何进一步的软件之前,您必须对此进行修复。
根据我发现的提示,我做了sudo apt-get update和sudo apt-get upgrade。后者以下列方式结束:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
linux-gen
我想在Ubuntu16.04LTS上安装晶体程序Coot,但似乎只存在14.04和18.04 版本。我试着安装18.04版本,但它开始抱怨缺少的库。我接下来所做的就是将库从coot文件夹复制到/usr/lib中,但现在仍然是这样:
::: DYLD_FALLBACK_LIBRARY_PATH is
/home/neitz/coot-Linux-x86_64-ubuntu-18.04.1-pre-release-gtk2-python/libexec/coot-bin: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not f
我不是一个经验丰富的C程序员,但有时我会编译一些C代码。
上一次我成功编译和运行C代码时,我是在与现在相同的系统上完成的(同一台机器上的操作系统完全相同,没有发生操作系统的卸载/重新安装)。大约两个月前我就这么做了。
现在,如果我试图编译一个非常简单的代码,比如:
#include <stdio.h>
main () {
printf("Hello");
return 0;
}
我得到:
gcc: error trying to exec 'cc1': execvp: No such file or director
昨天我运行了apt-get升级来更新我的内核(ubuntu15.04),而/boot内存不足(通常如果没有足够的空间,就会阻止升级任务运行)。
我意外地删除了活动内核,导致我在这里执行以下步骤- 如何在意外删除所有内核后恢复系统?
由于前面的内存错误阻止了我安装当前内核或升级剩余内核,所以我被困在步骤13中。
升级引发以下错误
root@ubuntu:/# apt-get -y upgrade linux-image-generic
Reading package lists... Done
Building dependency tree
Reading state i
由于磁盘空间,我遇到了一个升级/安装失败循环,但我看不出哪个驱动器已经满了。我试过清洁,自动清洗和自动移除,但都没有用。这是AWS上的Ubuntu。在我的/boot目录中有一堆内核(列在下面),但是我不知道如何清理它,因为清理、自动清理、自动删除都不起作用。下面列出了升级、安装和df命令输出:
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get
sudo apt-get -f install linux-firmware
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
amd64-microcode intel-microcode iucode-tool
Use 'apt-get autoremove' to rem