我注意到,每当我创建一个新的Dockerfile和:
RUN FROM ubuntu:latest,或者如果我运行以下命令:
docker run -it ubuntu bash,然后做:
uname -a,其结果总是如下所示:
Linux 5d0eab7d2f8e 4.9.36-moby #1 SMP Wed Jul 12 15:29:07 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
结果不应该是Ubuntu-16.04 for uname -r吗?为什么它说的是Moby而不是Ubuntu?
每当我安装任何新内核(或内核升级)时,都会出现很多错误。
我所犯的错误
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
我有一个带有RHEL7.5操作系统的服务器。系统上的收件箱内核版本为4.14.0-49。我有一个使用最新可用内核的要求,所以我下载了Kernel4.17.18源代码包并在我的系统上编译了它。所以现在我把两个内核都准备好了。
但是,我不能引导到新编译的内核版本4.17.18,当我指示它启动时,我会看到以下错误消息。
error: invalid magic number.
error: you need to load the kernel first.
Press any key to continue...
下面是我的服务器上可用的引导选项的
我在做Ubuntu 12服务器的季度更新。在apt-get更新成功后,我会得到这个错误,运行apt-获取任何内容。
Depends: linux-image-server (= 3.2.0.72.86) but it is not going to be installed
我不明白为什么这个linux映像不会被安装。该软件包存在,可下载等。
当我运行sudo apt-get dist-upgrade时,它会在最后输出以下内容:
The following packages were automatically installed and are no longer required:
linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic
linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic
Use 'apt-get autoremove' to remove them.
我能自动移
我刚跑了:
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
我正在使用Ubuntu18.04并尝试使用apt卸载旧的内核映像。但是,我收到一个错误,它不能被卸载,因为标题丢失了。我如何卸载它们?下面是命令sudo apt autoremove的部分输出
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-image-extra-3.13.0-39-generic linux-image-extra-3.13.0-40-gen
我有一台宏基电脑内置了一台苏音相机。自从我三周前改变了Windows 8以来,它一直工作得很好,但最近(两天前)在使用Skype或Cheese时显示了一个黑色屏幕。
系统测试已经检测到了相机,但在第一次测试中给了我这样的测试:
Could not load image 'camera_test_25112w.jpg'.Error interpreting JPEG image file (Improper call to JPEG library in state 200)
最后的结果:
**camera/detect** PASSED: */dev/video0: OK
我有一个容器,我想在上面安装ca-证书,但是尽管是ubuntu,它不识别apt和apt-get。
~ # cat /proc/version
Linux version 5.4.0-109-generic (buildd@ubuntu) (gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1)) #123-Ubuntu SMP Fri Apr 8 09:10:54 UTC 2022
~ # apt update
/bin/sh: apt: not found
~ # apt-get update
/bin/sh: apt-get: not found