我有点卡住了,还是个初学者。在升级过程中,我的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.
我在Oracle Linux上。
[root@ol76 systemd]# cat /etc/*release*
Oracle Linux Server release 7.6
NAME="Oracle Linux Server"
VERSION="7.6"
ID="ol"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Oracle Linux Server 7.6"
ANSI_COLOR=
当我尝试安装一些应用程序时,我会收到一条信息:
linux-headers-generic-lts-quantal : Depend: linux-headers-3.5.0-32-generic but it is not installable
不名-a
Linux ubuntus 3.5.0-27-generic #46~precise1-Ubuntu SMP Tue Mar 26 19:33:56 UTC 2013 i686 i686 i386 GNU/Linux
dpkg -l \ grep linux-映像
ii linux-image-3.5.0-23-generic
我有多个命名相似的文件。他们名字的不同只是一个递增的数字。例如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
我以为我终于找到了解决我的问题的办法,因为我不够聪明,不足以删除“清理旧内核”所不需要的内核/标题,这多亏了byobu。它对内核非常有用(谢天谢地,因为这是它的名字),但是对于头包来说,它工作得不太好。它似乎只删除了通用包,根本不触及基本包。
示例:
# dpkg -l | grep linux-header
ii linux-headers-4.4.0-101 4.4.0-101.124 all Header files related to Linux kernel version 4.4.0
我对环境变量有问题,我已经将GRAALVM_HOME设置为22.3版本,但出于某种原因,它一直检测22.1,我使用/etc/profile.d/jdk_ some . is文件来设置myh首选项,但是就我所能看到的文件/etc/profile.d/apps with .sh在覆盖我的首选项之前正在做一些事情。这是终端输出
linux@alandec:~$ native-image --version
GraalVM 22.1.0.1 Java 17 CE (Java Version 17.0.3+7-jvmci-22.1-b06)
linux@alandec:~$ echo $GRAALVM_
我的/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桌面上编译一个go程序(Linux桌面4.10.0-28-generic #32-Ubuntu SMP Fri Jun 30 05:32:18UTC 2017 x86_64 GNU/Linux),go version go version go1.8.3 linux/amd64 to arm:
$ GOPATH=/home/xrfang/git/hermes/ GOARM=7 GOARCH=arm go build .
生成可执行文件,但似乎不是ARMv7:
$ file hermes
hermes: ELF 32-bit LSB executable, ARM, EA
我继承了一台Windows Server Core机器,我想在那台机器上的docker中运行基于linux的容器。它目前被设置为运行基于windows的容器,所以我想切换到运行linux容器。
当我尝试使用基于linux的镜像时,我收到以下错误:
PS C:\Program Files\Docker> docker pull my-linux-based-image
Pulling from my-linux-based-image
image operating system "linux" cannot be used on this platform
在我的Wind
我接管了一台安装了MySQL的生产Linux RHEL服务器。我需要找出安装了哪个版本的MySql。
显然,这是很容易确定它显示为的信息,但不幸的是,没有人记得超级用户密码,也没有人知道它是什么版本的MySQL。
我假设它是Enterprise,但我需要确定。
我尝试了两个不同的命令:
mysql --version
输出:
mysql Ver 14.14 Distrib 5.6.13, for Linux (x86_64) using EditLine wrapper
和
file /usr/sbin/mysqld
输出:
/usr/sbin/mysqld: ELF 64-bit LSB
所以这是一个奇怪的问题。我正在使用Linux AMI [root@test /]# cat /etc/*release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03"
PRETTY_NAME="Amazon Linux AMI 2018.03"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:lin
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
我登录到EMR主节点,这是一个使用EC2启动的Amazon Linux AMI 2018.03 release实例。并执行以下命令及其输出如下:
uname -a
Linux ip-xx-xx-xxx-xxx y.yy.yyy-yyy.yyy.amzn1.x86_64 #1 SMP <TimeStamp Data> x86_64 GNU/Linux
cat /etc/os-release
NAME="Amazon Linux AMI"
VERSION="2018.03"
ID="amzn"
ID_LIKE="rhel fe
我可以在引导条目中看到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
我尝试过运行像find这样的简单的linux相关命令,但是在linux操作系统上没有这样的命令是随AVD提供的。然后,我想检查linux发行版来安装该程序,但是它显示了一些我不知道的nnk@nnk.mtv.corp.google.com:
Linux version 3.4.0+ (nnk@nnk.mtv.corp.google.com) (gcc version 4.7 (GCC) ) #1 P
REEMPT Wed Jul 10 09:55:37 PDT 2013
这个linux发行版是什么?我如何在它上安装程序?
当我试图启动一个docker容器时,我得到了下面的错误。
docker: Error response from daemon:
invalid header field value "oci runtime error: container_linux.go:247:
starting container process caused \"process_linux.go:334:
running prestart hook 0 caused \\\"fork/exec /usr/bin/dockerd (deleted): no such file or di
我的测试代码test.cpp
#include <iostream>
using namespace std;
int main(){
cout<<"hello"<<endl;
return 0;
}
当我通过g++ test.cpp编译它时,我收到以下错误:
fatal error: iostream: No such file or directory
我的环境:
#g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc