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

Gabriel Staples's questions

Martin Hope
Gabriel Staples
Asked: 2023-09-29 12:05:35 +0800 CST

无法在 Ubuntu 20.04 上安装“libdrm-dev”,因为它需要比我拥有的依赖项更旧的依赖项

  • 5
$ sudo apt install libdrm-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdrm-dev : Depends: libdrm2 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is to be installed
              Depends: libdrm-intel1 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is to be installed
              Depends: libdrm-radeon1 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is to be installed
              Depends: libdrm-nouveau2 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is to be installed
              Depends: libdrm-amdgpu1 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is to be installed
E: Unable to correct problems, you have held broken packages.

我可以强制它使用我的新版本吗?我有什么遗漏的吗?sudo aptitude install libdrm-dev显示我当前的版本较新:

$ sudo aptitude install libdrm-dev
The following NEW packages will be installed:
  libdrm-dev{b} 
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 126 kB of archives. After unpacking 658 kB will be used.
The following packages have unmet dependencies:
 libdrm-dev : Depends: libdrm2 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is installed
              Depends: libdrm-intel1 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is installed
              Depends: libdrm-radeon1 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is installed
              Depends: libdrm-nouveau2 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is installed
              Depends: libdrm-amdgpu1 (= 2.4.101-2) but 2.4.107-8ubuntu1~20.04.2 is installed
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libdrm-dev [Not Installed]                         



Accept this solution? [Y/n/q/?] 

apt
  • 1 个回答
  • 34 Views
Martin Hope
Gabriel Staples
Asked: 2023-09-29 11:24:53 +0800 CST

在 Ubuntu 20.04 上安装 displaylink-driver:未满足的依赖项 `evdi`

  • 5

我尝试按照我自己的安装说明进行操作:USB to HDMI adapter that Works with Ubuntu。它们在 Ubuntu 22.04 上运行良好,但在 20.04 上则不然。20.04 当我执行该sudo apt install displaylink-driver步骤时,我得到:

$ sudo apt install displaylink-driver 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 displaylink-driver : Depends: evdi (>= 1.14.1) but it is not going to be installed
                      Depends: evdi (< 1.15.0) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

这个答案推荐sudo apt install evdi-dkms。

这会导致更多错误:

Building initial module for 5.15.0-41-generic
ERROR (dkms apport): kernel package linux-headers-5.15.0-41-generic is not supported
Error! Bad return status for module build on kernel: 5.15.0-41-generic (x86_64)
Consult /var/lib/dkms/evdi/1.6.0+dfsg/build/make.log for more information.
dpkg: error processing package evdi-dkms (--configure):
 installed evdi-dkms package post-installation script subprocess returned error exit status 10
Setting up libevdi0 (1.6.0+dfsg-1ubuntu3) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 evdi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

完整上下文:

$ sudo apt install evdi-dkms
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libevdi0
The following NEW packages will be installed:
  evdi-dkms libevdi0
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.4 kB of archives.
After this operation, 173 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 evdi-dkms all 1.6.0+dfsg-1ubuntu3 [25.5 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/universe amd64 libevdi0 amd64 1.6.0+dfsg-1ubuntu3 [8,972 B]
Fetched 34.4 kB in 0s (74.8 kB/s)   
Selecting previously unselected package evdi-dkms.
(Reading database ... 499689 files and directories currently installed.)
Preparing to unpack .../evdi-dkms_1.6.0+dfsg-1ubuntu3_all.deb ...
Unpacking evdi-dkms (1.6.0+dfsg-1ubuntu3) ...
Selecting previously unselected package libevdi0.
Preparing to unpack .../libevdi0_1.6.0+dfsg-1ubuntu3_amd64.deb ...
Unpacking libevdi0 (1.6.0+dfsg-1ubuntu3) ...
Setting up evdi-dkms (1.6.0+dfsg-1ubuntu3) ...
Loading new evdi-1.6.0+dfsg DKMS files...
Building for 5.15.0-41-generic
Building initial module for 5.15.0-41-generic
ERROR (dkms apport): kernel package linux-headers-5.15.0-41-generic is not supported
Error! Bad return status for module build on kernel: 5.15.0-41-generic (x86_64)
Consult /var/lib/dkms/evdi/1.6.0+dfsg/build/make.log for more information.
dpkg: error processing package evdi-dkms (--configure):
 installed evdi-dkms package post-installation script subprocess returned error exit status 10
Setting up libevdi0 (1.6.0+dfsg-1ubuntu3) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Errors were encountered while processing:
 evdi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

现在sudo apt install可以安装在其他任何东西上。并sudo apt upgrade因此失败:

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up evdi-dkms (1.6.0+dfsg-1ubuntu3) ...
Removing old evdi-1.6.0+dfsg DKMS files...

------------------------------
Deleting module version: 1.6.0+dfsg
completely from the DKMS tree.
------------------------------
Done.
Loading new evdi-1.6.0+dfsg DKMS files...
Building for 5.15.0-41-generic
Building initial module for 5.15.0-41-generic
ERROR (dkms apport): kernel package linux-headers-5.15.0-41-generic is not supported
Error! Bad return status for module build on kernel: 5.15.0-41-generic (x86_64)
Consult /var/lib/dkms/evdi/1.6.0+dfsg/build/make.log for more information.
dpkg: error processing package evdi-dkms (--configure):
 installed evdi-dkms package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
 evdi-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

所以我按照我的评论运行sudo dpkg -r evdi-dkms来解决这个问题,然后我又回到了起点。sudo apt upgrade又可以工作了,谢天谢地!——哇!但是,sudo apt install displaylink-driver又回到了开头的错误。

我尝试升级到 Ubuntu 22.04,但/boot太满了。

注意:从sudo apt install evdi-dkms上面的失败消息来看,它表示:

咨询/var/lib/dkms/evdi/1.6.0+dfsg/build/make.log更多信息。

该文件中的内容如下:

来自/var/lib/dkms/evdi/1.6.0+dfsg/build/make.log:

DKMS make.log for evdi-1.6.0+dfsg for kernel 5.15.0-41-generic (x86_64)
Thu 28 Sep 2023 07:05:36 PM MST
make: Entering directory '/usr/src/linux-headers-5.15.0-41-generic'
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_drv.o
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_connector.o
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_modeset.o
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_encoder.o
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_main.o
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_fb.o
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_gem.o
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_drv.c:11:10: fatal error: drm/drmP.h: No such file or directory
   11 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_drv.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_painter.o
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_connector.c:14:10: fatal error: drm/drmP.h: No such file or directory
   14 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_modeset.c:15:10: fatal error: drm/drmP.h: No such file or directory
   15 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.b<drm/drmP.h>uild:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_modeset.o] Error 1
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_connector.o] Error 1
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_encoder.c:14:10: fatal error: drm/drmP.h: No such file or directory
   14 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_encoder.o] Error 1
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_gem.c:11:10: fatal error: drm/drmP.h: No such file or directory
   11 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_gem.o] Error 1
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_main.c:15:10: fatal error: drm/drmP.h: No such file or directory
   15 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_main.o] Error 1
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_painter.c:12:10: fatal error: drm/drmP.h: No such file or directory
   12 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_painter.o] Error 1
/var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_fb.c:20:10: fatal error: drm/drmP.h: No such file or directory
   20 | #include <drm/drmP.h>
      |          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/evdi/1.6.0+dfsg/build/evdi_fb.o] Error 1
make: *** [Makefile:1875: /var/lib/dkms/evdi/1.6.0+dfsg/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.15.0-41-generic'


ERROR (dkms apport): kernel package linux-headers-5.15.0-41-generic is not supported

所以显然我错过了头<drm/drmP.h>文件,如果有人知道如何获取它。

源代码evdi似乎在这里:https://github.com/DisplayLink/evdi

我无法从头开始构建它。make由于另一个丢失的头文件而失败。

(这就是人们使用 Windows 的原因,朋友们)。

我正在尝试按照以下说明安装libdrm-dev:如何在 Ubuntu 20.04或(更新版本)上安装 DisplayLink 软件如何在旧版 Ubuntu 版本上安装 DisplayLink 软件

...但这也行不通。
新问题:无法在 Ubuntu 20.04 上安装,因为它需要比我拥有的依赖项更旧的依赖项libdrm-dev

如果我按照我的回答libdrm从源代码手动构建和安装,然后手动尝试安装 DisplayLink 驱动程序,安装程序仍然会阻止我:

~/Downloads/Install_Files/DisplayLink/DisplayLink USB Graphics Software for Ubuntu5.8-EXE$ sudo ./displaylink-driver-5.8.0-63.33.run 
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing DisplayLink Linux Driver 5.8.0-63.33  100%  
Distribution discovered: Ubuntu 20.04.4 LTS
[ Installing dependencies ]
Need to update package list.
apt update? (Y/n) n
Unsatisfied dependencies. Missing component: libdrm.
This is a fatal error, cannot install DisplayLink Linux Software.

也可以看看

  1. 在 Ubuntu 20.04 上安装 DisplayLink 驱动程序时出现问题
  2. 无法在 Ubuntu 22.04 上安装 Synaptics displaylink-driver
apt
  • 1 个回答
  • 88 Views
Martin Hope
Gabriel Staples
Asked: 2023-03-06 08:50:01 +0800 CST

在新的 LUKS 分区中安装新的 Ubuntu 版本后,如何将旧的 LUKS 加密的 Ubuntu 版本返回到 Grub 菜单

  • 6

我有一个 LUKS 加密的 Ubuntu 20.04 安装程序。我在这里按照我自己的说明缩小 LUKS 分区并安装 Ubuntu 22.04,也是 LUKS 加密的。现在,我的 grub 启动菜单不再提供启动旧 LUKS 加密 Ubuntu 20.04 版本的选项。相反,它只是启动新的 22.04。

如何重新添加 LUKS 加密的 Ubuntu 20.04 版本?

这是我的磁盘,如 gparted 所示,同时登录到新的 Ubuntu 22.04 操作系统。

描述:

  1. /dev/nvme0n1p1是 512 MiB EFI 分区
  2. /dev/nvme0n1p2是旧 Ubuntu 20.04 操作系统的 ext4/boot非加密分区
  3. /dev/nvme0n1p3是包含单个 LVM 卷的 LUKS 加密分区,其中包含 Ubuntu 20.04(不再在 grub 菜单中)
  4. /dev/nvme0n1p4是新的 Ubuntu 22.04 操作系统的 ext4/boot非加密分区
  5. /dev/nvme0n1p5是包含单个 LVM 卷的 LUKS 加密分区,其中包含 Ubuntu 22.04(在grub 菜单中,操作系统正在运行)

在此处输入图像描述

可能有用:

  1. 对于更有经验的人来说,这个对不同问题的回答可能有一些线索,但我不明白:How to get grub to boot from a newly encrypted partition
  2. /bootLUKS加密硬盘如何修复?
dual-boot
  • 1 个回答
  • 59 Views
Martin Hope
Gabriel Staples
Asked: 2022-12-23 09:42:18 +0800 CST

如何将 Gnome 扩展的设置重置为默认设置?例如:对于 Ubuntu 22.04 中的“Awesome Tiles”?

  • 5

我在 Ubuntu 22.04 中安装了Awesome Tiles Gnome Extension,gnome-shell-extension-manager 因为由于 Ubuntu 22.04 中的一个错误,通过浏览器安装不起作用,并更改了设置中的一些键盘快捷键。我想将它们全部重置为默认值。如果我卸载并重新安装扩展,不会重置其设置。如何重置其设置?

更新:相关:

  1. Google 搜索“gnome 扩展设置存储在哪里?”
  2. gnome 扩展首选项存储在哪里?
gnome
  • 1 个回答
  • 23 Views
Martin Hope
Gabriel Staples
Asked: 2022-12-20 22:45:54 +0800 CST

在 Ubuntu 22.04 中,如何自动将窗口大小调整为屏幕的 1/4 并将其捕捉到一个角落?

  • 8

我为 Ubuntu 18.04 和 20.04 写了这个流行的答案,但现在由于 Wayland,它不能在 Ubuntu 22.04 上运行。

https://github.com/negesti/gnome-shell-extensions-negesti#wayland--wnck:

由于这种依赖性以及 Wayland 和 X11 识别应用程序的不同概念(wm_class 与 application_id),Wayland 不受支持!

来自https://extensions.gnome.org/extension/39/put-windows/:

在此处输入图像描述

任何想法、修复或替代方案?

这是一些东西,但不是很有用,在我玩它的 2 分钟内:https ://help.ubuntu.com/stable/ubuntu-help/shell-windows-states.html.en

如果这很重要,新的 Ubuntu 22.04 安装有GNOME Shell 42.5,如 所示gnome-shell --version。

WinTile 看起来很有前途,但到目前为止运气不佳。我开了一个问题:https ://github.com/Fmstrat/wintile/issues/91#issue-1504090370

22.04
  • 2 个回答
  • 97 Views
Martin Hope
Gabriel Staples
Asked: 2022-02-08 08:03:26 +0800 CST

如何让 ncdu 快速显示磁盘使用情况并退出?

  • 1

我想让ncduNCurses 磁盘使用工具分析路径、显示输出并退出,以用于脚本目的。通常它是一个人机交互工具,但我想删除它的人机交互部分。

如果我运行,ncdu /boot我可以看到我的/boot分区。这是我看到的:

ncdu 1.14.1 ~ Use the arrow keys to navigate, press ? for help 
--- /boot -----------------------------------------------------
  100.2 MiB [##########]  initrd.img-5.13.0-28-generic         
  100.2 MiB [######### ]  initrd.img-5.13.0-27-generic
   11.2 MiB [#         ]  vmlinuz-5.11.0-46-generic
    9.7 MiB [          ]  vmlinuz-5.13.0-28-generic
    9.7 MiB [          ]  vmlinuz-5.13.0-27-generic
    9.7 MiB [          ]  vmlinuz-5.13.0-25-generic
    8.0 MiB [          ] /grub
    5.7 MiB [          ]  System.map-5.13.0-28-generic
    5.7 MiB [          ]  System.map-5.13.0-27-generic
    5.7 MiB [          ]  System.map-5.13.0-25-generic
    5.6 MiB [          ]  System.map-5.11.0-46-generic
  252.0 KiB [          ]  config-5.13.0-28-generic
  252.0 KiB [          ]  config-5.13.0-27-generic
  252.0 KiB [          ]  config-5.13.0-25-generic
  252.0 KiB [          ]  config-5.11.0-46-generic
  184.0 KiB [          ]  memtest86+_multiboot.bin
  184.0 KiB [          ]  memtest86+.elf
  180.0 KiB [          ]  memtest86+.bin
!  16.0 KiB [          ] /lost+found
!   4.0 KiB [          ] /efi
@   0.0   B [          ]  initrd.img.old
@   0.0   B [          ]  initrd.img
@   0.0   B [          ]  vmlinuz.old
@   0.0   B [          ]  vmlinuz

现在,我如何编写脚本来显示此输出,将其存储到变量中以供以后打印,然后退出?

我想要的是这样的:

output="$(ncdu /boot)"
echo "$output"

目前它挂在第一行,因为我认为它正在等待人类互动。

后续问题:bash: make dushow output 类似于ncdu

command-line
  • 1 个回答
  • 429 Views
Martin Hope
Gabriel Staples
Asked: 2022-02-03 16:29:15 +0800 CST

如何在 Linux Ubuntu 上安装和配置最新版本的 `solaar` 来管理我的罗技无线鼠标或键盘?

  • 5

我知道我可以做到:

sudo apt update
sudo apt install solaar

在 Ubuntu 上安装 3rd-party 工具solaar,这样我就可以使用它来将新的罗技设备(例如键盘和鼠标)与我的统一罗技接收器配对和取消配对,这样我就可以看到许多这些设备的电池状态,但solaar版本安装的很旧,在我的主屏幕的右上角没有正确显示,总体上看起来有问题。

如何安装最新版本并将其配置为无需特殊权限即可工作,并在每次重新启动后自动启动?

最新版本solaar不允许我更改设置,例如鼠标中的 DPI 灵敏度设置吗?如何更改该设置?

keyboard
  • 2 个回答
  • 5788 Views
Martin Hope
Gabriel Staples
Asked: 2021-08-25 19:42:54 +0800 CST

2021 年 8 月 24 日最新自动更新后的 Ubuntu 20.04 WiFi“无网络”

  • 0

在 Ubuntu 20.04 上。自动更新程序弹出。多年来,我点击安装更新,就像我之前安装的数百次一样。它要求重新启动。我说了可以。现在,我没有 WiFi:

在此处输入图像描述

在右上角,wifi 显示为空白:

在此处输入图像描述

我该怎么办?我通过有线以太网连接到我厨房的路由器来发布这个。

有没有办法回滚到最新更新之前?或者,只是让 Wifi 工作?


以下是一些输出,以防它们在某种程度上有用:

$ cat /etc/netplan/01-network-manager-all.yaml 
# Let NetworkManager manage all devices on this system
network:
  version: 2
  renderer: NetworkManager
$ lspci | grep -i network
02:00.0 Network controller: Intel Corporation Wireless 8265 / 8275 (rev 78)

蓝牙仍然有效。我仍然可以很好地将蓝牙耳机连接到笔记本电脑。

networking
  • 1 个回答
  • 726 Views
Martin Hope
Gabriel Staples
Asked: 2021-06-30 20:50:56 +0800 CST

我在哪里可以找到核心转储文件,如何同时查看和分析回溯(堆栈跟踪)?

  • 18

当我在 Ubuntu 20.04 上运行 C 程序时,出现以下运行时错误:

Segmentation fault (core dumped)

我真的需要找到并查看该core文件,但我无法在任何地方找到它。它在哪里,如何查看其中的回溯?

debugging
  • 2 个回答
  • 25889 Views
Martin Hope
Gabriel Staples
Asked: 2021-01-25 11:28:31 +0800 CST

如何在 PS1 提示字符串中使用 sed 替换终端标题

  • 0

我已经玩了> 1小时。并且无法弄清楚这一点。这是我的PS1提示字符串:

$ echo $PS1
\$SHLVL:2 \e[7m$(gs_git_show_branch)\e[m\n\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\e]2;this is the title\a\]

终端窗口标题是this is the title部分。\[\e]2;标记标题的开始,并\a\]标记结束。请参阅此处的“自定义终端窗口标题”。

根据https://regex101.com/,正则表达式字符串\\\[\\e\]2;.*\\a\\\]似乎与标题及其转义字符匹配。在此处查看它的演示:https ://regex101.com/r/okcx0T/1 。

因此,该sed命令应该从字符串中删除标题PS1并打印输出,但它似乎与标题字符串完全不匹配!从 中可以看出echo $PS1,没有区别:

$ echo $PS1 | sed -E "s|\\\[\\e\]2;.*\\a\\\]||"
\$SHLVL:2 \e[7m$(gs_git_show_branch)\e[m\n\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\e]2;this is the title\a\]

$ echo $PS1
\$SHLVL:2 \e[7m$(gs_git_show_branch)\e[m\n\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\e]2;this is the title\a\]

如何替换PS1变量中的这个标题字符串,有或没有sed?

我的sed命令显然适用于简单的匹配。看这个!从提示字符串this is the title的末尾明显删除。PS1

$ echo $PS1 | sed 's|this is the title||'
\$SHLVL:2 \e[7m$(gs_git_show_branch)\e[m\n\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\e]2;\a\]

我似乎无法匹配标题字符串的开头和结尾转义字符就是全部!

我在尝试解决这个问题时搜索过的参考资料

  1. https://wiki.archlinux.org/index.php/Bash/Prompt_customization#Customizing_the_terminal_window_title
  2. https://linuxize.com/post/how-to-check-if-string-contains-substring-in-bash/
  3. https://stackoverflow.com/questions/229551/how-to-check-if-a-string-contains-a-substring-in-bash
  4. https://superuser.com/questions/1107680/how-to-use-sed-with-piping
  5. https://stackoverflow.com/questions/8356958/sed-just-trying-to-remove-a-substring
  6. https://unix.stackexchange.com/questions/169207/remove-backslashes-from-a-text-file/169210#169210' - 有一些关于在 bash、 vs"等中转义的重要评论。
  7. https://unix.stackexchange.com/questions/19491/how-to-specify-characters-using-hexadecimal-codes-in-grep
  8. https://en.wikipedia.org/wiki/ASCII
bash
  • 1 个回答
  • 395 Views
Martin Hope
Gabriel Staples
Asked: 2020-09-05 21:31:42 +0800 CST

在 Ubuntu 20.04 中我的 32" 4k 外接显示器上没有 60Hz 刷新率选项

  • 4

在戴尔 Latitude 7490 笔记本电脑上的 Ubuntu 20.04 显示设置中,我可以将笔记本电脑显示器设置为 60 Hz 时的 1920 x 1080 分辨率,但我无法将AOC CU32V3 32" 4k 显示器设置为 60 Hz(请参阅下面的屏幕截图),即使显示器支持它。感觉很迟钝,所以我真的很想将刷新率提高到 60 Hz。知道我该怎么做吗?

笔记本电脑显示器为 60Hz: 在此处输入图像描述


外接显示器在 60Hz 刷新率下支持 4k(3840 x 2160 分辨率),但我无法将其设置为 60Hz: 在此处输入图像描述


请注意,没有 60Hz 选项: 在此处输入图像描述


证明制造商说它在 4k 时支持 60Hz:

https://us.aoc.com/en/monitors/cu32v3 在此处输入图像描述


关于我的笔记本电脑显卡(Intel HD Graphics 620)的信息:

我目前使用 HDMI 1.2 模式下的高速 HDMI 电缆连接。我是否明白我必须使用 USB C 到 Display Port 适配器和 Display Port 才能获得 60Hz 的 4k,也许,而不是HDMI?

在此处输入图像描述

有关的:

  1. https://www.dell.com/community/Latitude/How-to-have-Latitude-7490-to-use-4k-display-with-60Hz/td-p/6085124
multiple-monitors display-resolution display 4k-monitor 20.04
  • 2 个回答
  • 3936 Views
Martin Hope
Gabriel Staples
Asked: 2020-08-17 21:43:09 +0800 CST

Ubuntu 20.04 反复死机;屏幕闪烁;需要硬重启

  • 0

在最近(约 2 周前)在高端戴尔笔记本电脑上安装 Ubuntu 20.04 时,我不断出现随机冻结。我的屏幕以大约 2Hz 的零星频率左右闪烁和振动约 3 到 7 毫米。按住键盘上的任何键都会停止闪烁。硬重启是唯一的解决方案。

什么可能导致这种情况?是 Ubuntu 20 问题还是我的 SSD 出现故障?我不知道,但 gsmartcontrol 似乎表明我的 ssd 没问题。在其中一次崩溃期间,我通过按 Ctrl + Alt + F 键之一捕获了此图像,直到找到此屏幕。然后我不得不硬重启。甚至Ctrl + Alt + PrScrn + REISUB 都不起作用!

在此处输入图像描述

就在尝试在这台计算机上写这个答案时,它已经冻结,我已经硬重启了 4 次。在最后一个小时内,10 次以上。

crash 20.04
  • 1 个回答
  • 716 Views
Martin Hope
Gabriel Staples
Asked: 2020-08-10 11:15:23 +0800 CST

全新 Ubuntu 20.04 安装中缺少 Ubuntu 软件中心(“软件”程序)和“Snap Store”(并且无法从 GUI 文件管理器安装 *.deb 文件)

  • 1

在我全新的 Ubuntu 20.04 安装(昨天刚刚安装)中,单击 GUI 文件管理器(例如 nautilus 或nemo )中的 *.deb 文件只会打开存档管理器,而不是像以前在 Ubuntu 上那样要求安装它18.04。一些站点,例如 this,说要右键单击 *.deb 文件并将“软件安装”设置为默认选项:

疑难解答:在 Ubuntu 20.04 软件中心双击 deb 文件无法打开

在 Ubuntu 20.04 中双击 deb 文件会在存档管理器而不是软件中心打开该文件。

这很奇怪,但很容易解决。您所要做的就是右键单击 deb 文件并选择 Open With 选项。在这里,选择打开方式Software Install作为默认选项。

但是,我没有“软件安装”选项。我做了一些挖掘,结果发现我也没有 Ubuntu 软件中心或 Snap Store。我该如何安装这些?以及如何修复 *.deb 文件的“软件安装”选项,因为它需要安装 Ubuntu 软件中心?

这些不回答我的问题,也不重复:

  1. 20.04 中缺少 Ubuntu 软件中心
  2. Ubuntu 软件无法在 Ubuntu 20.04 中打开
  3. [不回答我的问题,尽管它确实建议使用gdebi,这可能有用并且我将来可能会使用]在软件安装 Ubuntu 20.04 中安装 .deb 时出现问题
  4. https://itsfoss.com/cant-install-deb-file-ubuntu/
package-management dpkg software-center deb snap
  • 1 个回答
  • 1617 Views
Martin Hope
Gabriel Staples
Asked: 2020-04-17 20:48:34 +0800 CST

Ubuntu 18.04 gnome 设置:如何修复已经是管理员的第二个用户的“系统策略阻止更改。请联系您的系统管理员”

  • 6

我有一台 Ubuntu 18.04 机器,有 2 个用户。两人都是管理员。第一个用户工作正常。第二个用户有一些系统设置显示为灰色,例如用于修改用户的解锁按钮。当我将鼠标悬停在它上面时,它会显示“系统策略阻止更改。请联系您的系统管理员”:

在此处输入图像描述

...以及用于修改打印机设置的解锁按钮,以及打印机设置本身——两者都是灰色的!

在此处输入图像描述

与日期和时间设置相同...解锁按钮显示为灰色并显示相同的消息。

怎么了?如何让用户 2 能够更改打印机设置或修改用户?他们是sudo组的成员和管理员,所有这些设置都适用于用户 1。

也许与polkit有关?<--不知道这是什么,我一点也不明白。

更新:如果这些文件中的任何一个与问题有关,我有这些:

/usr/share/polkit-1$ tree
.
├── actions
│   ├── com.hp.hplip.policy
│   ├── com.ubuntu.apport.policy
│   ├── com.ubuntu.languageselector.policy
│   ├── com.ubuntu.release-upgrader.policy
│   ├── com.ubuntu.softwareproperties.policy
│   ├── com.ubuntu.systemservice.policy
│   ├── com.ubuntu.update-notifier.policy
│   ├── com.ubuntu.usbcreator.policy
│   ├── com.ubuntu.welcome.policy
│   ├── com.ubuntu.whoopsiepreferences.policy
│   ├── io.snapcraft.snapd.policy
│   ├── org.a11y.brlapi.policy
│   ├── org.debian.apt.policy
│   ├── org.dpkg.pkexec.update-alternatives.policy
│   ├── org.freedesktop.accounts.policy
│   ├── org.freedesktop.bolt.policy
│   ├── org.freedesktop.color.policy
│   ├── org.freedesktop.fwupd.policy
│   ├── org.freedesktop.hostname1.policy
│   ├── org.freedesktop.locale1.policy
│   ├── org.freedesktop.login1.policy
│   ├── org.freedesktop.ModemManager1.policy
│   ├── org.freedesktop.NetworkManager.policy
│   ├── org.freedesktop.packagekit.policy
│   ├── org.freedesktop.packagekit.system-network-proxy-configure.policy
│   ├── org.freedesktop.pkexec.nomachine.policy
│   ├── org.freedesktop.policykit.policy
│   ├── org.freedesktop.RealtimeKit1.policy
│   ├── org.freedesktop.resolve1.policy
│   ├── org.freedesktop.systemd1.policy
│   ├── org.freedesktop.timedate1.policy
│   ├── org.freedesktop.UDisks2.policy
│   ├── org.gnome.controlcenter.datetime.policy
│   ├── org.gnome.controlcenter.remote-login-helper.policy
│   ├── org.gnome.controlcenter.user-accounts.policy
│   ├── org.gnome.DejaDup.policy
│   ├── org.gnome.gparted.policy
│   ├── org.gnome.settings-daemon.plugins.power.policy
│   ├── org.gnome.settings-daemon.plugins.wacom.policy
│   ├── org.gtk.vfs.file-operations.policy
│   ├── org.kde.kio.file.policy
│   ├── org.nemo.root.policy
│   ├── org.opensuse.cupspkhelper.mechanism.policy
│   ├── org.xfce.thunar.policy
│   └── org.x.xf86-video-intel.backlight-helper.policy
└── rules.d
    ├── 20-gnome-initial-setup.rules
    ├── 60-network-manager.rules
    ├── geoclue-2.0.rules
    ├── gnome-control-center.rules
    ├── org.freedesktop.bolt.rules
    ├── org.freedesktop.fwupd.rules
    ├── org.freedesktop.packagekit.rules
    ├── org.gtk.vfs.file-operations.rules
    └── systemd-networkd.rules

2 directories, 54 files

也可能相关:
来源:https ://www.admin-magazine.com/Articles/Assigning-Privileges-with-sudo-and-PolicyKit

在此处输入图像描述

相关,但似乎没有帮助:

  1. https://superuser.com/questions/980921/cant-unlock-system-settings-such-as-network-settings-to-edit-in-xubuntu
  2. 当通过 xRDP 会话连接时,我如何向能够解锁用户 GUI 以创建新用户的用户授予权限?
  3. https://www.linuxquestions.org/questions/slackware-14/system-policy-prevents-modification-of-network-settings-for-all-users-4175420519/
  4. ***** https://wiki.archlinux.org/index.php/Polkit
  5. https://www.freedesktop.org/software/polkit/docs/latest/polkit.8.html
  6. https://help.ubuntu.com/stable/ubuntu-help/user-admin-change.html.en - 对我不起作用 - 按钮变灰
  7. 如何从命令行创建管理员用户?- 似乎不是我需要的,我已经跑了sudo usermod -aG sudo user2,然后注销并重新登录,sudo当我运行时,user2 现在显示为组之一groups,但它仍然不起作用
gnome permissions printing users administrator
  • 1 个回答
  • 6365 Views
Martin Hope
Gabriel Staples
Asked: 2020-02-12 09:28:30 +0800 CST

打开带有多个选项卡的终端并执行为每个选项卡唯一修改 PS1 变量的应用程序

  • 4

我正在尝试做的事情:

  1. 编写脚本以打开 3 个选项卡。
  2. cd进入每个选项卡中的不同文件夹(即:运行唯一命令)。
  3. PS1通过修改其局部变量使每个选项卡具有唯一的标题
  4. 确保每个选项卡在脚本运行后保持打开状态

我想要这个脚本,所以我可以单击我的桌面上的脚本并让它打开终端,因为我想要我的日常开发环境。

描述:

我有这个脚本来尝试打开 3 个终端选项卡,其中包含要在选项卡中运行的独特命令:

open_tabs.sh

#!/bin/bash

gnome-terminal --tab -- bash -ic "set-title title 1; exec bash"
gnome-terminal --tab -- bash -ic "cd ~; set-title title 2; exec bash"
gnome-terminal --tab

当我使用 运行它时./open_tabs.sh,它会打开 3 个新标签,但不幸set-title的是无法设置标签标题!看来这个PS1变量并没有随着我的set-title调用而保持不变。根据此答案和其下方的评论exec bash,可以使标签保持打开状态。

我已经set-title定义为这样的函数~/.bashrc。它的目的是在任何终端窗口的顶部设置标题字符串。当我手动使用它时它工作得很好。例如:set-title hey how are you?会放“嘿,你​​好吗?” 在我的终端窗口的顶部。

# From: https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal/566383#566383
set-title() {
    # If the length of string stored in variable `PS1_BAK` is zero...
    # - See `man test` to know that `-z` means "the length of STRING is zero"
    if [[ -z "$PS1_BAK" ]]; then
        # Back up your current Bash Prompt String 1 (`PS1`) into a global backup variable `PS1_BAK`
        PS1_BAK=$PS1 
    fi

    # Set the title escape sequence string with this format: `\[\e]2;new title\a\]`
    # - See: https://wiki.archlinux.org/index.php/Bash/Prompt_customization#Customizing_the_terminal_window_title
    TITLE="\[\e]2;$@\a\]"
    # Now append the escaped title string to the end of your original `PS1` string (`PS1_BAK`), and set your
    # new `PS1` string to this new value
    PS1=${PS1_BAK}${TITLE}
}

我该如何解决这个问题,以便每个选项卡运行一个命令,通过修改其PS1变量来设置其标题,并保持打开状态?

请注意,gnome-terminal已弃用其--title和--command选项,因此这些变通方法。

有关的:

  1. bash:在打开 gnome-terminal 选项卡时在 `bash -c` 命令中调用 ~/.bashrc 文件中定义的函数时出现“找不到命令”
  2. https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal/566383#566383
  3. 使用多个选项卡打开终端并执行应用程序<== 这是我真正想要解决gnome-terminal的问题,但现在不推荐使用--command( ) 选项!-e

    # Option “--command” is deprecated and might be removed in a later version of gnome-terminal.
    # Use “-- ” to terminate the options and put the command line to execute after it.
    
  4. 如何在不关闭终端的情况下运行脚本?

scripts command-line gnome-terminal bash tabs
  • 2 个回答
  • 10012 Views
Martin Hope
Gabriel Staples
Asked: 2020-02-11 22:37:36 +0800 CST

bash:在打开 gnome-terminal 选项卡时在 `bash -c` 命令中调用 ~/.bashrc 文件中定义的函数时出现“找不到命令”

  • 5

我正在尝试做的事情:

  1. 编写脚本以打开 3 个选项卡。
  2. cd进入每个选项卡中的不同文件夹(即:运行唯一命令)。
  3. 让每个标签都有一个唯一的标题

我想要这个脚本,所以我可以单击我的桌面上的脚本并让它打开终端,因为我想要我的日常开发环境。

描述:

我有这个脚本来尝试打开 3 个终端选项卡,其中包含要在选项卡中运行的独特命令:

open_tabs.sh

#!/bin/bash

gnome-terminal --tab -- bash -c "source $HOME/.bashrc && set-title hey; exec bash"
gnome-terminal --tab -- bash -c "cd ~; exec bash"
gnome-terminal --tab

当我使用 运行它时./open_tabs.sh,它会打开 3 个新标签,但不幸set-title的是无法设置标签标题!我在打开的选项卡中收到此错误:

bash: set-title: command not found

我已经set-title定义为这样的函数~/.bashrc。它的目的是在任何终端窗口的顶部设置标题字符串。当我手动使用它时它工作得很好。例如:set-title hey how are you?会放“嘿,你​​好吗?” 在我的终端窗口的顶部。

# From: https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal/566383#566383
set-title() {
    # If the length of string stored in variable `PS1_BAK` is zero...
    # - See `man test` to know that `-z` means "the length of STRING is zero"
    if [[ -z "$PS1_BAK" ]]; then
        # Back up your current Bash Prompt String 1 (`PS1`) into a global backup variable `PS1_BAK`
        PS1_BAK=$PS1 
    fi

    # Set the title escape sequence string with this format: `\[\e]2;new title\a\]`
    # - See: https://wiki.archlinux.org/index.php/Bash/Prompt_customization#Customizing_the_terminal_window_title
    TITLE="\[\e]2;$@\a\]"
    # Now append the escaped title string to the end of your original `PS1` string (`PS1_BAK`), and set your
    # new `PS1` string to this new value
    PS1=${PS1_BAK}${TITLE}
}

我该如何解决!?我试过exporting 和sourceing 只是不知道我在这里做错了什么。

有关的:

  1. 打开带有多个选项卡的终端并执行为每个选项卡唯一修改 PS1 变量的应用程序
  2. https://unix.stackexchange.com/questions/177572/how-to-rename-terminal-tab-title-in-gnome-terminal/566383#566383
  3. 使用多个选项卡打开终端并执行应用程序<== 这是我真正想要解决gnome-terminal的问题,但现在不推荐使用--command( ) 选项!-e

    # Option “--command” is deprecated and might be removed in a later version of gnome-terminal.
    # Use “-- ” to terminate the options and put the command line to execute after it.
    
scripts gnome-terminal bash bashrc source
  • 1 个回答
  • 2025 Views
Martin Hope
Gabriel Staples
Asked: 2019-12-15 18:23:47 +0800 CST

在 GUI 文件管理器中单击磁盘时自动挂载突然停止在 Ubuntu 中工作。(“无法挂载...无权执行操作。”)

  • 12

我正在使用带有 nemo 作为文件管理器的 Ubuntu 18.04,并且我无法再安装磁盘或分区,只需双击它们就会显示出来,而就在几周前,这工作得非常好!知道发生了什么变化吗?也许更新搞砸了?

错误是:

无法安装 NAME_OF_DISK。无权执行操作。

nemo 文件管理器的屏幕截图:

在此处输入图像描述

这个答案似乎也对我没有帮助,因为我刚刚启动并没有真正打开任何东西。反复重启并不能解决问题。我如何找出可能持有锁的应用程序?安装闪存驱动器:未授权执行操作。

请注意,解决方法是使用 sudo 手动完成,但我真的不喜欢使用 sudo!前任:

sudo mkdir /media/mydisk
sudo mount /dev/sdb1 /media/mydisk

或者这也有效:

sudo gnome-disks

然后使用 gnome“磁盘”实用程序通过 GUI 挂载。

如果我这样做,除非我也以 root 身份运行我的文件管理器,否则我无法查看已安装的分区。前任:

sudo nemo

然后在具有提升权限的 GUI 文件管理窗口中导航。


更新:

  • 可能与Polkit有关??- https://wiki.archlinux.org/index.php/Polkit#Allow_mounting_a_filesystem_on_a_system_device_for_any_user

有关的

  1. https://superuser.com/questions/1151993/usb-automount-fail-not-authorized--与Polkit和plugdev组有关?
mount automount
  • 2 个回答
  • 7016 Views
Martin Hope
Gabriel Staples
Asked: 2018-03-31 15:08:51 +0800 CST

在 Ubuntu 中右键单击启动器时,如何显示打开的 Nemo 文件浏览器窗口的完整文件夹路径?

  • 1

我使用 Nemo 而不是 Nautilus 作为我的主要 Ubuntu Unity 文件管理器。当我右键单击启动栏上的图标时,它会显示打开窗口的文件夹名称,如此处的屏幕截图所示。但是,我真的很希望它显示完整路径,因为我经常打开多个具有相同名称的窗口并且永远找不到我正在寻找的那个。

在此处输入图像描述

如果您告诉我在图标上左键单击两次以使其缩小并散布在屏幕上,我会说我发现此功能几乎没用。有时我在处理大型项目时打开了 10 个或更多窗口,并且尝试选择正确的窗口比使用Alt+更糟糕Tab,这也非常缓慢和乏味。

一个简单的右键单击启动器,显示足够的文件夹信息(即:完整路径),我可以识别打开的窗口正是我需要的。

注意:如果您不能完全按照我的要求进行操作,欢迎使用其他方法来有效地选择我想要的文件管理器窗口(超过 10 个窗口)。

unity launcher filemanager nemo
  • 1 个回答
  • 2165 Views
Martin Hope
Gabriel Staples
Asked: 2018-03-05 23:42:25 +0800 CST

在我下载亚马逊 Kindle 电子书以使用“Kindle Cloud Reader”Chrome 应用程序进行离线阅读后,我的 Linux PC 上的哪些电子书以及如何转换为 PDF?

  • 12

在我使用“Kindle Cloud Reader”Chrome 应用程序下载 Amazon Kindle 电子书以供离线阅读后,它们在我的 Linux PC 上的什么位置,以及如何将它们转换为 PDF 格式?

对于 Windows,这似乎是答案:

  • Chrome 在哪里存储使用 Windows 7 上的 Amazon-Cloud Extension 下载的离线书籍?- 堆栈溢出
  • 我刚从 Amazon Kindle 购买的电子书到我的电脑在哪里?- 电子书堆栈交换

对于 MacOS,这似乎是答案:

  • OS X Kindle App:书籍在哪里?- 问不同

但对于 Linux,似乎没有答案。:(

我的目标是将 Kindle 电子书转换为 PDF 格式(我更喜欢这种格式),以便在任何设备上离线阅读。受够了这种专有的“仅通过 Kindle 应用程序阅读”垃圾。看在上帝的份上,我在 Linux 上!


更新:在~/.config/google-chrome我有以下内容:

gabriels:~/.config/google-chrome$ ls
Avatars                       pnacl
BrowserMetrics                Profile 1
BrowserMetrics-active.pma     Profile 2
BrowserMetrics-spare.pma      Safe Browsing
Certificate Revocation Lists  Safe Browsing Channel IDs
CertificateTransparency       Safe Browsing Channel IDs-journal
Consent To Send Stats         Safe Browsing Cookies
Crash Reports                 Safe Browsing Cookies-journal
Dictionaries                  ShaderCache
FileTypePolicies              SingletonCookie
First Run                     SingletonLock
Guest Profile                 SingletonSocket
Local State                   SSLErrorAssistant
NativeMessagingHosts          Subresource Filter
OriginTrials                  System Profile
PepperFlash                   Webstore Downloads
google-chrome ebooks kindle
  • 6 个回答
  • 46160 Views
Martin Hope
Gabriel Staples
Asked: 2016-12-05 14:26:40 +0800 CST

“缺少一些必需的组件”--无法使用 Chrome 远程桌面从 Linux 连接到 Windows

  • 2

我正在运行 Xubuntu 16.04 LTS(与 Ubuntu 16.04 LTS 相同的核心),一个 Debian Linux 发行版,并且需要能够使用该工具从这里 连接到Windows 机器。Chrome Remote Desktop我的服务器端在 Windows 机器上运行,可以从我的 Android 手机登录,但我无法从 Xubuntu 登录。

我在尝试时收到此错误:“缺少一些必需的组件。请转到 chrome://plugins 并确保已启用 Native Client。” (见下面的截图)。

在此处输入图像描述

但是,当我转到 chrome://plugins 时,我得到以下信息:

在此处输入图像描述

而已!没有要启用的“本机客户端”插件。如何修复此错误,以便我可以使用 Chrome 远程桌面从 Linux 计算机登录 Windows 计算机?

注意:我使用sudo apt-get install chromium-browser.


Stack Exchange 注意:这个问题最初是在StackOverflow上发布的,但由于它更像是“超级用户”或“询问 Ubuntu ”类型的问题,因此被管理员“搁置” 。因此,我把问题移到了这里。同时,在这个过程中,我也找到了自己问题的答案,因此我自己也回答了它来帮助别人。

Happy Remote Desktop-ing
~Gabriel
www.ElectricRCAAircraftGuy.com

google-chrome
  • 2 个回答
  • 7104 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