我尝试按照本指南在 Ubuntu 18.10 上安装 amdgpu-pro 驱动程序,但是安装失败,说驱动程序仅适用于 18.04。
https://linuxconfig.org/how-to-install-amd-radeon-drivers-on-ubuntu-18-10-cosmic-cuttlefish-linux
现在当我尝试运行 apt upgrade 时 apt 已经完全崩溃,我收到以下错误消息:
/tmp/apt-dpkg-install-4A1LcU/03-amdgpu-core_19.20-812932_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Run Code Online (Sandbox Code Playgroud)
sudo dpkg --configure -a
但是,我尝试过这会返回大量依赖错误,因为Package amdgpu-core is not installed
.
然后我试图apt install -f
解决这个问题,但得到了错误:
ERROR: This package can only be installed on Ubuntu 18.04.
dpkg: error processing archive /var/opt/amdgpu-pro-local/./amdgpu-core_19.20-812932_all.deb (--unpack):
new amdgpu-core package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
/var/opt/amdgpu-pro-local/./amdgpu-core_19.20-812932_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1) …
Run Code Online (Sandbox Code Playgroud) 您好,我需要 grep df 的输出。可悲的是 awk 不是一个选项(即使它是一个简单的选项)在这里我只能使用 grep。
Filesystem 1K-blocks Used Available Use% Mounted on
none 4 0 4 0% /sys/fs/cgroup
none 5120 0 5120 0% /run/lock
none 1981488 444 1981044 0% /run/shm
none 102400 64 102336 0% /run/user
/dev/sda3 418176236 281033024 137143212 67% /media/mark/7EE21FBAE21F761D
Run Code Online (Sandbox Code Playgroud)
因此,例如我想要以 /dev/sda3 开头的行的 $4 列