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-109740

userDepth's questions

Martin Hope
userDepth
Asked: 2020-07-31 03:15:35 +0800 CST

如何使用查找命令和过滤错误消息

  • 0

我正在运行这个命令:find / | grep corectrl | grep 日志

而且我收到很多权限被拒绝错误,我想将 stderr 发送到 null

find stdout
  • 1 个回答
  • 514 Views
Martin Hope
userDepth
Asked: 2020-06-12 04:38:14 +0800 CST

DKMS 驱动卡住,无法卸载

  • 0

我似乎无法删除 Digimend 的 DKMS 驱动程序。

sudo dkms remove digimend/9 --all

------------------------------
Deleting module version: 9
completely from the DKMS tree.
------------------------------
Done.

一切看起来都很好,但是当我删除/安装一个包时,我得到了

Setting up digimend-dkms (9) ...
Loading new digimend-9 DKMS files...
Building for 5.4.0-37-generic
Building initial module for 5.4.0-37-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/digimend-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.4.0-37-generic (x86_64)
Consult /var/lib/dkms/digimend/9/build/make.log for more information.
dpkg: error processing package digimend-dkms (--configure):
 installed digimend-dkms package post-installation script subprocess returned error exit status 10
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
Errors were encountered while processing:
 digimend-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

制作日志

DKMS make.log for digimend-9 for kernel 5.4.0-37-generic (x86_64)
jue 11 jun 2020 08:28:50 AST
make -C /lib/modules/5.4.0-37-generic/build SUBDIRS=/var/lib/dkms/digimend/9/build modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-37-generic'
  DESCEND  objtool
/usr/src/linux-headers-5.4.0-37-generic/tools/build/Makefile.build:37: /usr/src/linux-headers-5.4.0-37-generic/tools/build/Build.include: No such file or directory
make[5]: *** No rule to make target '/usr/src/linux-headers-5.4.0-37-generic/tools/build/Build.include'.  Stop.
make[4]: *** [Makefile:43: /usr/src/linux-headers-5.4.0-37-generic/tools/objtool/fixdep-in.o] Error 2
make[3]: *** [/usr/src/linux-headers-5.4.0-37-generic/tools/build/Makefile.include:5: fixdep] Error 2
make[2]: *** [Makefile:67: objtool] Error 2
make[1]: *** [Makefile:1823: tools/objtool] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-37-generic'
make: *** [Makefile:22: modules] Error 2
drivers kernel dkms
  • 1 个回答
  • 3522 Views
Martin Hope
userDepth
Asked: 2020-06-03 04:30:12 +0800 CST

如何清除 WineHQ PPA?添加后不会出现在来源中

  • 0

Kubuntu 20.04 64 位,带有一些游戏应用程序的全新安装。

ls -al /etc/apt/sources.list.d/
total 32
drwxr-xr-x 2 root root 4096 jun  2 08:04 .
drwxr-xr-x 7 root root 4096 jun  2 08:04 ..
-rw-r--r-- 1 root root   71 jun  2 08:04 amdvlk.list
-rw-r--r-- 1 root root   71 jun  2 08:04 amdvlk.list.save
-rw-r--r-- 1 root root  128 jun  2 08:04 ernstp-ubuntu-mesarc-focal.list
-rw-r--r-- 1 root root  128 jun  2 08:04 ernstp-ubuntu-mesarc-focal.list.save
-rw-r--r-- 1 root root  138 jun  2 08:04 lutris-team-ubuntu-lutris-focal.list
-rw-r--r-- 1 root root  138 jun  2 08:04 lutris-team-ubuntu-lutris-focal.list.save

wine --version
wine-5.9 (Staging)

正如您在添加 WineHQ PPA 后看到的那样,它不会出现在源代码中,因此我可以删除软件源代码。用ppa-purge打 TAB找不到 PPA

ppa-purge 
-d                  ernstp/mesarc       -h                  -i                  lutris-team/lutris  -o                  -p                  -s                  -y  
ppa apt software-sources purge
  • 1 个回答
  • 387 Views
Martin Hope
userDepth
Asked: 2019-09-20 05:25:55 +0800 CST

我应该如何设置 Tuned-adm?

  • 5

所以简单的答案可能只是安装调整apt install tuned

我想知道按需服务是否会与tuned-adm 发生冲突,因此它会在安装tuned 之前禁用该服务。

这是我认为我应该做的

systemctl stop ondemand
systemctl disable ondemand
apt install tuned

我想确认这一点,因为我没有文件说我应该这样做。

power-management cpu
  • 1 个回答
  • 2238 Views
Martin Hope
userDepth
Asked: 2019-03-31 16:30:23 +0800 CST

RAID 0 SSD 主分区有哪些好的 fstab 选项?

  • 1

我按照本指南进行 RAID 设置:RAID 指南

本指南是否适用于Ubunutu 迁移指南

由于一切都已整理好,我只需要知道/etc/fstab/为此推荐的参数。

这是我的 fstab,但我想确认这是好的设置

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p1 during installation
UUID=e27c04ad-ec57-4b6d-8bcd-c7613c271cf2 /               ext4    errors=remount-ro 0       1
#UUID=3128be42-d242-1a08-afba-a2a3b7c965dc /home           ext4   defaults           0       1
/swapfile                                 none            swap    sw              0       0
home-directory raid
  • 1 个回答
  • 1580 Views
Martin Hope
userDepth
Asked: 2018-04-28 09:04:02 +0800 CST

添加新分辨率 1366x768 @ 60 的步骤(疑难解答)

  • 1

我刚刚在笔记本电脑上安装了 Ubuntu MATE 18.04 并进行了双显示器设置,两个显示器都开箱即用,甚至在启动时本机显示器也关闭了。我现在需要在其中一个显示器上使用 1366x768 分辨率,但这不是一个选项。我添加了一个分辨率,但生成的分辨率不正确我不小心添加了 1368x768

再试一次会报错:

cvt 1366 768 60
sudo xrandr --newmode "1366x768_60.00"  85.25  1366 1440 1576 1784  768 771 781 798 -hsync +vsync
X Error of failed request:  BadName (named color or font does not exist)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  16 (RRCreateMode)
  Serial number of failed request:  31
  Current serial number in output stream:  31
display-resolution intel-graphics
  • 1 个回答
  • 10928 Views
Martin Hope
userDepth
Asked: 2017-10-07 07:45:36 +0800 CST

我可以阻止 OpenPGP 密钥同步到密钥服务器吗?

  • 1

我想生成一个 OpenPGP 密钥并将其与 Thunderbird 一起使用,但是当我在 Seahorse 中这样做时,我不希望此密钥与密钥服务器同步。

thunderbird
  • 1 个回答
  • 102 Views
Martin Hope
userDepth
Asked: 2017-10-07 06:45:51 +0800 CST

有没有办法将信息/手册页打印为 PDF?

  • 5

我想查看PDF格式的信息或手册页,以便格式正确显示。我看到可以转换 texi 文件(使用texi2pdf),但我没有找到任何带有 locate 的 texi 文件。在这种情况下,我对 Gpg2 信息页面感兴趣。

command-line
  • 3 个回答
  • 3051 Views
Martin Hope
userDepth
Asked: 2017-04-06 12:58:02 +0800 CST

如何在 Ubuntu MATE 16.04 中更改关闭/暂停/关闭主面板

  • 0

我想注销然后关闭我的计算机,这些按钮对我来说已弃用,我想更改用于注销的电源按钮以及菜单项。

我怎样才能做到这一点?,我在 DConf

DConf 编辑器

16.04
  • 1 个回答
  • 1410 Views
Martin Hope
userDepth
Asked: 2017-03-11 15:42:34 +0800 CST

I/O 调度程序在哪里永久设置?库本图 20.04.1 64 位

  • 4

我想使用两个调度程序,因为由于单独的 HOME 磁盘,我为我的系统设置了两个磁盘。意思是我有 SDA 和 SDB

做 echo noop /sys/block/sda/queue/scheduler说许可被SUDO拒绝

我尝试了建议的解决方案,但它不再起作用

/etc/udev/rules.d/60-schedulers.rules
ACTION=="add|change", KERNEL=="sda", ATTR{queue/scheduler}="noop"
ACTION=="add|change", KERNEL=="nvme0n1", ATTR{queue/scheduler}="noop"
cat /sys/block/nvme0n1/queue/scheduler 
[none] mq-deadline

该设置是系统范围的

它可能是这样的

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator:sda=noop elevator:nvme0n1=noop"

这是正确的行还是两个磁盘参数之间需要逗号?

kernel
  • 1 个回答
  • 3244 Views
Martin Hope
userDepth
Asked: 2017-01-21 05:34:36 +0800 CST

`reset` 命令是否会清除命令使用的会话内存?

  • 4

我可以在 bash 中使用一个reset命令,我认为它是core-utils. 它是否会清理终端会话中先前命令使用的 RAM?

我的意思是所有写入终端和命令使用的内存的东西。

command-line
  • 2 个回答
  • 4449 Views
Martin Hope
userDepth
Asked: 2017-01-01 06:56:03 +0800 CST

关闭/暂停/可以从 Unity 的主菜单中移除吗?

  • 2

我试图截取主手动电源图标的屏幕截图。我的主要目标是仅在登录屏幕上执行这些操作,而将注销操作作为中介。

我目前正在使用 16.04 64 位

shutdown
  • 1 个回答
  • 483 Views
Martin Hope
userDepth
Asked: 2016-11-28 13:26:01 +0800 CST

如何修复apt / auto升级?

  • 1

我试图查看无人值守升级询问我的两个文件之间的差异。在调整窗口大小时,我不小心点击了保留旧文件/etc/apt/apt.conf.d/20auto-upgrades.ucf-dist。现在,每当我安装软件包时都会收到此消息:

N: Ignoring file '20auto-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/'
apt
  • 1 个回答
  • 821 Views
Martin Hope
userDepth
Asked: 2016-09-24 11:01:44 +0800 CST

更改为另一个公共 DNS 服务器如何工作?

  • 3

我尝试按照Rackspace 的这个指南/etc/resolv.conf进行操作,但是需要编辑的文件看起来像这样,并带有一个非常有趣的警告:

cat /etc/resolv.conf 
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

我从这里获得了 Google DNS 设置,但我不知道该怎么做。

在此处输入图像描述

我应该使用 Google 的 DNS 数据填充“搜索域”字段,还是应该将其放在哪里?

networking
  • 1 个回答
  • 2127 Views
Martin Hope
userDepth
Asked: 2016-09-22 14:15:32 +0800 CST

如何在登录用户会话时自动停止 Apache

  • 0

我想开发一个 Web 服务,并且需要在登录用户帐户时关闭 Apache。只有在我开发时才激活它。

我使用热点通过 WiFi 尝试网络服务

我试图在启动应用程序上添加一个脚本:

systemctl stop apache

但是在登录时停止 apache不起作用,

scripts
  • 1 个回答
  • 171 Views
Martin Hope
userDepth
Asked: 2016-09-20 17:59:24 +0800 CST

使用 apt-get lock 的过程是什么?[复制]

  • 17
这个问题在这里已经有了答案:
dpkg: error: dpkg status 数据库被另一个进程锁定 10个答案
3年前关闭。

我没有运行任何包安装,但是当我尝试安装DEB包时出现以下错误。我考虑过重新启动系统,但这可能会损坏数据库。而且以前也发生过。

sudo dpkg -i slack-desktop-2.1.2-amd64.deb 
dpkg: error: dpkg status database is locked by another process

sudo apt-get update
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [95.7 kB]
Hit:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:7 http://archive.ubuntu.com/ubuntu xenial-security InRelease
Get:8 http://archive.ubuntu.com/ubuntu xenial-updates/main Sources [188 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [94.2 kB]
Get:10 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [387 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [383 kB]
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [147 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [326 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [323 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [113 kB]
Fetched 2,058 kB in 5s (360 kB/s)                                
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

apt
  • 2 个回答
  • 69865 Views
Martin Hope
userDepth
Asked: 2016-08-11 19:07:49 +0800 CST

在哪里向 Ubuntu MATE 团队提出功能请求

  • 3

我想删除 Ubuntu MATE Welcome 程序,这没有用,因为这是单用户安装。并且没有新用户或访客用户将使用该计算机。

development
  • 2 个回答
  • 94 Views
Martin Hope
userDepth
Asked: 2016-08-10 16:30:17 +0800 CST

XRandr 可能的配置 Ubuntu MATE 16.04

  • 2

我正在检查 XRandr,我运行它流氓,它在其中一行中显示了这一点:

Screen 0: minimum 8 x 8, current 1366 x 768, maximum 32767 x 32767

这是否意味着我可以将其配置为最大 32767 x 32767 像素?

它可以在 HDMI 中使用 1080,但可以在笔记本电脑显示器中使用吗?

我设法添加了一个虚拟显示器

这是 GTF 输出:

gtf 1920 1080 60 -x

# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz
  Modeline "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

这是我将模式添加到笔记本电脑屏幕时得到的

xrandr --addmode LVDS1 1920x1080_60.00
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  18 (RRAddOutputMode)
  Serial number of failed request:  34
  Current serial number in output stream:  35

这是我现在的 XRANDR 输出

LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1366x768      60.00*+  40.00  
   1360x768      59.80    59.96  
   1280x720      60.00  
   1024x768      60.00  
   1024x576      60.00  
   960x540       60.00  
   800x600       60.32    56.25  
   864x486       60.00  
   640x480       59.94  
   720x405       60.00  
   680x384       60.00  
   640x360       60.00  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
  1920x1080_60.00 (0x100) 172.800MHz -HSync +VSync
        h: width  1920 start 2040 end 2248 total 2576 skew    0 clock  67.08KHz
        v: height 1080 start 1081 end 1084 total 1118           clock  60.00Hz
  1440x1080_60.00 (0x101) 129.870MHz -HSync +VSync
        h: width  1440 start 1536 end 1688 total 1936 skew    0 clock  67.08KHz
        v: height 1080 start 1081 end 1084 total 1118           clock  60.00Hz
display
  • 1 个回答
  • 1488 Views
Martin Hope
userDepth
Asked: 2016-07-20 08:43:45 +0800 CST

Seahorse 和 GPG 终端程序可以独立运行吗?

  • 0

我已经按照 Launchpad 的指示使用 Seahorse GUI 生成了个人 PGP 密钥。我必须为 Ubuntu 行为准则手动签署一个文件,但是... GPG 没有找到密钥,所以我需要知道这是一个错误还是什么。我将阅读 GPG 的 MAN 页面,了解如何将密钥导入 GPG,因为这显然是解决方案。

application-development
  • 1 个回答
  • 96 Views
Martin Hope
userDepth
Asked: 2016-07-15 04:22:02 +0800 CST

无法签署 Ubuntu 行为准则

  • 2

这是我在键入命令以签署 Launchpad 的行为准则时得到的。

clearsign failed: secret key not available

我按照 Launchpad 中的步骤进行操作,但在上传密​​钥后没有从启动板服务器收到确认电子邮件。这似乎是这里缺少的骨头,但我想我可以在没有这些说明的情况下签名。

这就是我正在做的一切:

gpg --clearsign ./UbuntuCodeofConduct-2.0.txt
gpg: no default secret key: secret key not available
gpg: ./UbuntuCodeofConduct-2.0 (1).txt: clearsign failed: secret key not available

Launchpad 指示执行此操作,但正如我之前所说,它还说我会收到一封我找不到的电子邮件。

当我这样做时:

gpg --fingerprint

我没有输出。

launchpad
  • 1 个回答
  • 239 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