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

Lorenz Keel's questions

Martin Hope
Lorenz Keel
Asked: 2021-11-06 04:25:54 +0800 CST

已安装 NVIDIA 驱动程序,但在附加驱动程序中不可用

  • 0

我的系统是带有 GPU NVIDIA GF117M 的三星 NP450R5E-X04IT Ativ Book 4。它在 X11 会话上运行带有 Gnome Shell 40.5 和内核 5.13.0-20 的 Ubuntu 21.10。上次全新安装是使用 Ubuntu 20.04,然后我每 6 个月使用常规操作系统更新更新系统。

我使用 Nouveau 驱动程序,没有安装 NVIDIA 驱动程序。现在,我想安装它们。首先,我尝试了以下方法:

$ sudo ubuntu-drivers autoinstall
No drivers found for installation.

然后,我通过sudo apt install nvidia-drivers-470. 安装没问题(根据相关数据的输出):

$ sudo apt install nvidia-driver-470
Reading package lists... Done
[...]
0 upgraded, 69 newly installed, 0 to remove and 0 not upgraded.
Need to get 305 MB of archives.
After this operation, 858 MB of additional disk space will be used.
[...]
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
Loading new nvidia-470.74 DKMS files...
Building for 5.13.0-20-generic
Building for architecture x86_64
Building initial module for 5.13.0-20-generic
Secure Boot not enabled on this system.
Done.

nvidia.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-20-generic/updates/dkms/

nvidia-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-20-generic/updates/dkms/

nvidia-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-20-generic/updates/dkms/

nvidia-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-20-generic/updates/dkms/

nvidia-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.13.0-20-generic/updates/dkms/

depmod..........

DKMS: install completed.
[...]
update-initramfs: Generating /boot/initrd.img-5.13.0-20-generic

但是,即使在重新启动后,驱动程序也不会在附加驱动程序选项卡中列出。

其他驱动程序选项卡

lspci命令显示以下控制器:

 $ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
    DeviceName:  Onboard IGD
    Subsystem: Samsung Electronics Co Ltd 3rd Gen Core processor Graphics Controller
    Kernel driver in use: i915
--
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
    Subsystem: Samsung Electronics Co Ltd GeForce 710M
    Kernel driver in use: nvidia
    Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia

我也尝试nvidia-driver-390根据Ubuntu 20.04 LTS 中未检测到 NVIDIA 驱动程序进行卸载,但无济于事。

是什么阻止了 nvidia-drivers 出现在 Additional Drivers 选项卡中?是否有一些缺少的命令可以运行以使 NVIDIA 驱动程序可选?

drivers
  • 1 个回答
  • 1265 Views
Martin Hope
Lorenz Keel
Asked: 2021-07-22 07:57:54 +0800 CST

启动时触发“fsck”的机制

  • 3

问题:哪些机制(除了 in 中的机制/etc/fstab)会在启动时自动触发fsck?

详细信息:我的电脑目前运行 Ubuntu 21.04没有任何问题,它工作正常。在启动时,fsck会执行磁盘检查,因为我在屏幕上看到以下几行。

Ubuntu: clean, 281400/3276800 files, 3602929/13107177 blocks

我的(根分区)Ubuntu的标签在哪里。/dev/sda2但是,如果您检查我的/etc/fstab文件,最后一列(即 fsck 用于确定 fsck 是否应在挂载之前检查文件系统的列)设置为零,因此我不希望在启动时进行任何检查。

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# /dev/sda1
UUID=DA59-E469  /boot/efi   vfat    defaults    0   0
# /dev/sda2
UUID=862c6f26-cbe0-4cd5-860d-fdf306f697f9 / ext4 noatime,errors=remount-ro 0 0
# /dev/sda3
UUID=70f175d4-ec37-455c-84c5-b93d1e2e8761 /mnt/Data ext4 noatime,nosuid,nodev,nofail,x-gvfs-show 0 0
# swapfile
/swapfile none swap sw 0 0

我只是想了解检查是如何触发的(和/或我的假设是否有问题)。

一些细节:

  • 我/etc/fstab在 Ubuntu 20.04 和 Ubuntu 20.10 中使用了相同的方法。更新到 Ubuntu 21.04 后开始出现检查:fsck20.04 和 20.10 启动时没有检查。
  • 的输出sudo tune2fs -l /dev/sda2 | grep checked是Last checked: Sun Apr 26 15:00:01 2020,这可能是我将最后一列设置/etc/fstab为零的时候。
  • /forcefsck我在root上没有任何文件。
  • 在我/etc/default/grub没有fsck.mode=force设置。
boot
  • 1 个回答
  • 651 Views
Martin Hope
Lorenz Keel
Asked: 2020-10-16 04:23:45 +0800 CST

将 awk 用于定义“最小包集”的 bash 脚本

  • 1

我想编写一个具有以下要求的脚本:

  • 在输入中,通过apt. 在那里,您可能有一些由列表中的其他包自动安装的包。
  • 在输出中,提供相同的列表,但不包含依赖于列表中其他包的包。

换句话说,我想在 bash 中做用户 Francois G 在这个答案中所做的事情

也许这样的东西已经存在,但有时我喜欢编写脚本来改进我的 bash 脚本,同时也为了好玩。

在我看来,我已经设计了脚本,但我有一个技术问题。假设我有这种格式的依赖列表(就是这样apt-rdepends):

useless-line-1
useless-line-2
useless-line-3
item-1
  fixed-string substring-1-1
  fixed-string substring-1-2
  fixed-string substring-1-3
item-2
  fixed-string substring-2-1
  fixed-string substring-2-2
item-3
item-4
  fixed-string substring-4-1
  fixed-string substring-4-2
  fixed-string substring-4-3
  fixed-string substring-4-4

我想提取与item-1ie相关的段落:

  fixed-string substring-1-1
  fixed-string substring-1-2
  fixed-string substring-1-3

我不是awk专家,但我认为它可以满足我的目的。我无法“构建”正确的命令。由于item-2可能不为人知,我尝试了:

# extract text between item-1 and the next line that starts without blank
$ awk '/item-1/,/^[A-Za-z0-9]/' deplist
item-1

但item-1已经符合条件^[A-Za-z0-9],所以不好。此外,我想从输出中排除item-1和。item-2

提取这部分数据的最佳方法是什么?

scripts command-line bash awk
  • 1 个回答
  • 67 Views
Martin Hope
Lorenz Keel
Asked: 2020-05-17 05:29:29 +0800 CST

升级到 Ubuntu 20.04 后 xdg-desktop-portal-gtk 冲突

  • 0

在我的 Ubuntu 20.04 中,当我执行时sudo apt update && sudo apt upgrade,apt 通知我无法更新包 xdg-desktop-portal-gtk。因此,如果我尝试sudo apt reinstall xdg-desktop-portal-gtk我会收到消息(意大利语,但您可以轻松想象它的含义):

xdg-desktop-portal-gtk : Dipende: libgnome-desktop-3-18 (>= 3.17.92) ma non è installabile

如果我跑步,sudo apt list -ua我会得到:

xdg-desktop-portal-gtk/eoan 1.7.1-flatpak1~eoan amd64 [aggiornabile da: 1.6.0-1build1]
xdg-desktop-portal-gtk/focal,now 1.6.0-1build1 amd64 [installato, aggiornabile a: 1.7.1-flatpak1~eoan]

而输出apt-cache policy xdg-desktop-portal-gtk是:

  Installato: 1.6.0-1build1
  Candidato:  1.7.1-flatpak1~eoan
  Tabella versione:
     1.7.1-flatpak1~eoan 500
        500 http://ppa.launchpad.net/alexlarsson/flatpak/ubuntu eoan/main amd64 Packages
 *** 1.6.0-1build1 500
        500 http://it.archive.ubuntu.com/ubuntu focal/main amd64 Packages
        100 /var/lib/dpkg/status

Flatpak 是从其官方 PPA 安装的。

我该如何解决冲突?是否有机会“阻止”此特定软件包的一个存储库以便从另一个存储库中获取它?如果是,我应该更喜欢哪个版本?

package-management upgrade apt
  • 1 个回答
  • 761 Views
Martin Hope
Lorenz Keel
Asked: 2020-05-01 05:59:01 +0800 CST

Ubuntu 20.04 Focal Fossa 中缺少 qt4-qtconfig 软件包

  • 1

我使用了一个名为 Mame Set Rebuilder 的应用程序(您可以在 Internet 上轻松找到参考资料),它以 .app 格式在 Qt4 中构建。

当我拥有 Ubuntu 19.10 时,我能够使用 package 设置应用程序的字体qt4-qtconfig。使用这个包设置字体可以防止应用程序使用一些预定义和丑陋的字体。

现在我有一个全新的 Ubuntu 20.04 安装,并且该软件包已从存储库中删除(如果我尝试从 deb 软件包安装它,它需要一些不兼容的依赖项)。QT5 应用程序的配置器qt5ct似乎无法将其配置应用于 QT4 应用程序。

有没有办法改善焦点窝中 QT4 应用程序的字体?请考虑该应用程序完全有效,这只是一个美学问题。

package-management fonts qt4 20.04
  • 3 个回答
  • 2571 Views
Martin Hope
Lorenz Keel
Asked: 2020-01-27 08:29:06 +0800 CST

无法移动以丢弃绑定挂载目录中的文件

  • 1

在我的 Ubuntu Budgie 19.10 上,我有一个 ext4 分区安装在/mnt/Data. 此外,我已经在每个主文件夹中安装了一个特定文件夹/mnt/Data(使用bind,没有符号链接)。fstab文件如下:

# /dev/sda3
UUID=xxxxx /mnt/Data auto nosuid,nodev,nofail,x-gvfs-show 0 0
# home folders
/mnt/Data/Desktop /home/<user>/Desktop none rw,bind 0 0
/mnt/Data/Documents /home/<user>/Documents none rw,bind 0 0
/mnt/Data/Download /home/<user>/Download none rw,bind 0 0
/mnt/Data/Pictures /home/<user>/Pictures none rw,bind 0 0
/mnt/Data/Music /home/<user>/Music none rw,bind 0 0
/mnt/Data/Video /home/<user>/Video none rw,bind 0 0

但是,当我尝试删除其中一个主文件夹(例如,下载)中的文件时,我收到错误消息“无法将文件移动到垃圾箱,您要立即删除它吗?”

这是的输出ls -la /mnt/Data:

<user>@<user>-home:~$ ls -la /mnt/Data
drwxrwxr-x 12 <user> <user>   4096 gen 19 16:52 .
drwxr-xr-x  3 root   root     4096 ott 31  2017 ..
[...]
drwxrwxr-x  5 <user> <user>   4096 gen 26 19:05 Desktop
drwxrwxr-x  5 <user> <user>   4096 set 22 22:15 .Trash-1000

我的问题:如何将我的文件移动到垃圾箱?我已经阅读了很多关于文件夹正确所有权的问题,但我无法解决这个问题。

fstab permissions partitioning mount trash
  • 1 个回答
  • 474 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