AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-839610

ezekiel's questions

Martin Hope
ezekiel
Asked: 2020-12-28 03:16:29 +0800 CST

运行 htop 时出现“错误:文件 /etc/sensors3.conf:权限被拒绝”

  • 6

跑步时htop我得到

错误:文件/etc/sensors3.conf:权限被拒绝

权限:

$ ls -l /etc/sensors3.conf
-rw-r--r-- 1 root root 10368 Apr  5  2017 /etc/sensors3.conf

htop仍然按预期工作,但是这个错误是怎么回事?

我也试过:

sudo apt install --reinstall lm-sensors

这没有任何区别。

which htop
/usr/bin/htop
18.04
  • 2 个回答
  • 982 Views
Martin Hope
ezekiel
Asked: 2020-08-15 01:32:34 +0800 CST

通过 ppa 安装 duplicity 失败

  • 1

我正在尝试按照此处的说明在 ubuntu 16.04 服务器上设置重复性。但:

$ sudo add-apt-repository ppa:duplicity-team/ppa
Cannot add PPA: 'ppa:~duplicity-team/ubuntu/ppa'.
The team named '~duplicity-team' has no PPA named 'ubuntu/ppa'
Please choose from the following available PPAs:
 * 'duplicity-develop-git':  duplicity-develop-git
 * 'duplicity-release-git':  duplicity-release-git

我尝试遵循建议:

$ sudo add-apt-repository ppa:duplicity-release-git/ppa
Cannot add PPA: 'ppa:~duplicity-release-git/ubuntu/ppa'.
ERROR: '~duplicity-release-git' user or team does not exist.

如何安装 0.7.12 或更新版本?

ppa duplicity 16.04
  • 1 个回答
  • 639 Views
Martin Hope
ezekiel
Asked: 2020-01-24 05:34:09 +0800 CST

Ubuntu 16.04 的 UEFI 安装仅在双/旧模式下启动

  • 0

Ubuntu 16.04 服务器版,超微主板

我在 EFI 模式下安装了 3 个硬盘驱动器 (/ /home /srv) - 我在引导前仅在 bios 中设置了 EFI,检查了安装磁盘的完整性并为所有内容创建了新的 GPT 分区表和新分区。安装成功,但如果我尝试在仅 EFI 模式下启动,它不会出现。除了 EFI shell,我什么也得不到(UEFI HDd 被设置为优先级)

但是,如果我将 bios 设置为 Dual 而不是 EFI 启动,则 ubuntu 会按预期启动。运行 fdisk -l 确认所有内容都被分区为 GPT。

那么为什么它不能在设置了 EFI only 模式的情况下启动呢?我真的以某种方式以旧模式启动吗?

boot uefi
  • 1 个回答
  • 425 Views
Martin Hope
ezekiel
Asked: 2019-07-31 03:01:38 +0800 CST

服务器上的“自动安装安全更新”可能会发生什么变化?

  • 0

在安装时,一个可用的选项是自动安装安全更新——这可能会改变什么样的事情?我的内核可以在没有我输入的情况下自动升级吗?

unattended-upgrades
  • 1 个回答
  • 106 Views
Martin Hope
ezekiel
Asked: 2019-04-11 05:42:18 +0800 CST

Ubuntu 服务器 16.04 上的 DKMS

  • 0

最近的内核更新破坏了我的 Cuda 安装(如果我启动旧内核,它工作正常) - 非常相似的设置在其他机器上的内核更新中持续存在,主要区别在于这个安装是 Ubuntu Server 而其他的是 Ubuntu Desktop。这听起来像是 DKMS 问题吗?或者是其他东西?如何让我的 cuda 模块针对新内核构建自己?

我有 Ubuntu 16.04、Cuda 10.0(由本地 .deb 安装)、nvidia 驱动程序 410.48(在 cuda 安装期间自动安装)和 2080Ti GPU

$ ls -al /boot
total 111740
drwxr-xr-x  3 root root     4096 Apr  9 12:02 .
drwxr-xr-x 24 root root     4096 Apr  4 16:53 ..
-rw-r--r--  1 root root  1252376 Jan 16 23:29 abi-4.4.0-142-generic
-rw-r--r--  1 root root   190580 Jan 16 23:29 config-4.4.0-142-generic
-rw-r--r--  1 root root   190580 Mar 26 14:02 config-4.4.0-145-generic
drwxr-xr-x  5 root root     4096 Apr  9 12:02 grub
-rw-r--r--  1 root root 50832836 Apr  4 16:54 initrd.img-4.4.0-142-generic
-rw-r--r--  1 root root 39170185 Apr  9 11:15 initrd.img-4.4.0-145-generic
-rw-r--r--  1 root root   182704 Jan 28  2016 memtest86+.bin
-rw-r--r--  1 root root   184380 Jan 28  2016 memtest86+.elf
-rw-r--r--  1 root root   184840 Jan 28  2016 memtest86+_multiboot.bin
-rw-r--r--  1 root root      255 Jan 16 23:29 retpoline-4.4.0-142-generic
-rw-------  1 root root  3904797 Jan 16 23:29 System.map-4.4.0-142-generic
-rw-------  1 root root  3906115 Mar 26 14:02 System.map-4.4.0-145-generic
-rw-------  1 root root  7184032 Jan 16 23:29 vmlinuz-4.4.0-142-generic
-rw-------  1 root root  7188984 Mar 27 10:03 vmlinuz-4.4.0-145-generic

$ dkms status
bbswitch, 0.8, 4.4.0-142-generic, x86_64: installed
bbswitch, 0.8, 4.4.0-145-generic, x86_64: installed
nvidia-410, 410.48, 4.4.0-142-generic, x86_64: installed

$ ls -al /usr/src
total 44
drwxr-xr-x 11 root root 4096 Apr  9 12:02 .
drwxr-xr-x 12 root root 4096 Mar 14 12:56 ..
drwxr-xr-x  2 root root 4096 Mar 14 11:05 bbswitch-0.8
drwxr-xr-x  5 root root 4096 Mar 14 14:55 cudnn_samples_v7
drwxr-xr-x  3 root root 4096 Mar 14 12:56 gmock
drwxr-xr-x  4 root root 4096 Mar 14 12:56 gtest
drwxr-xr-x 27 root root 4096 Feb 27 18:41 linux-headers-4.4.0-142
drwxr-xr-x  7 root root 4096 Feb 27 18:43 linux-headers-4.4.0-142-generic
drwxr-xr-x 27 root root 4096 Apr  4 16:53 linux-headers-4.4.0-145
drwxr-xr-x  7 root root 4096 Apr  4 16:53 linux-headers-4.4.0-145-generic
drwxr-xr-x  8 root root 4096 Mar 14 14:49 nvidia-410-410.48

$ ls -alR /var/lib/dkms
[Very long output] https://pastebin.com/RRMsBT0s
server cuda 16.04 dkms
  • 1 个回答
  • 967 Views
Martin Hope
ezekiel
Asked: 2018-07-07 14:34:33 +0800 CST

最近的 nvidia-304 升级破坏了系统

  • 1

通过 Nvidia ppa 安装和更新 Ubuntu 16.04 nvidia-304 专有驱动程序(适用于 GT 620)

该系统运行良好 6 个月,但最近由于无法构建 nvidia-304 更新而崩溃(无法通过登录屏幕)。任何有关如何解决此问题的建议将不胜感激

apt purge nvidia* && apt install nvidia-304

.........
[output truncated for clarity]
Loading new nvidia-304-304.137 DKMS files...
First Installation: checking all kernels...
Building only for 4.15.0-24-generic
Building for architecture x86_64
Building initial module for 4.15.0-24-generic
Error! Bad return status for module build on kernel: 4.15.0-24-generic (x86_64)
Consult /var/lib/dkms/nvidia-304/304.137/build/make.log for more information.
Setting up nvidia-opencl-icd-304 (304.137-0ubuntu0~gpu16.04.1) ...
Setting up nvidia-settings (396.24-0ubuntu0~gpu16.04.1) ...
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for initramfs-tools (0.122ubuntu8.11) ...
update-initramfs: Generating /boot/initrd.img-4.15.0-24-generic


tail -20 /var/crash/nvidia-304.0.crash 
      nvl->rc_timer.data = (unsigned long) nv;
                   ^
 cc1: some warnings being treated as errors
 scripts/Makefile.build:332: recipe for target '/var/lib/dkms/nvidia-304/304.137/build/nv.o' failed
 make[3]: *** [/var/lib/dkms/nvidia-304/304.137/build/nv.o] Error 1
 Makefile:1552: recipe for target '_module_/var/lib/dkms/nvidia-304/304.137/build' failed
 make[2]: *** [_module_/var/lib/dkms/nvidia-304/304.137/build] Error 2
 NVIDIA: left KBUILD.
 nvidia.ko failed to build!
 Makefile:261: recipe for target 'module' failed
 make[1]: *** [module] Error 1
 makefile:59: recipe for target 'module' failed
 make: *** [module] Error 2
DKMSKernelVersion: 4.15.0-24-generic
Date: Fri Jul  6 23:06:48 2018
DuplicateSignature: dkms:nvidia-304:304.137-0ubuntu0~gpu16.04.1:/var/lib/dkms/nvidia-304/304.137/build/nv.c:3032:5: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
Package: nvidia-304 304.137-0ubuntu0~gpu16.04.1
PackageVersion: 304.137-0ubuntu0~gpu16.04.1
SourcePackage: nvidia-graphics-drivers-304
Title: nvidia-304 304.137-0ubuntu0~gpu16.04.1: nvidia-304 kernel module failed to build


tail -20 /var/lib/dkms/nvidia-304/304.137/build/make.log
/var/lib/dkms/nvidia-304/304.137/build/nv.c:3032:5: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
     init_timer(&nvl->rc_timer);
     ^
/var/lib/dkms/nvidia-304/304.137/build/nv.c:3033:28: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
     nvl->rc_timer.function = nv_kern_rc_timer;
                            ^
/var/lib/dkms/nvidia-304/304.137/build/nv.c:3034:18: error: ‘struct timer_list’ has no member named ‘data’
     nvl->rc_timer.data = (unsigned long) nv;
                  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/var/lib/dkms/nvidia-304/304.137/build/nv.o' failed
make[3]: *** [/var/lib/dkms/nvidia-304/304.137/build/nv.o] Error 1
Makefile:1552: recipe for target '_module_/var/lib/dkms/nvidia-304/304.137/build' failed
make[2]: *** [_module_/var/lib/dkms/nvidia-304/304.137/build] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:261: recipe for target 'module' failed
make[1]: *** [module] Error 1
makefile:59: recipe for target 'module' failed
make: *** [module] Error 2
drivers nvidia dkms
  • 2 个回答
  • 813 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve