小编Kul*_*lfy的帖子

如何更改 Ubuntu Windows 上的默认用户?

每当我单击开始菜单中的 Ubuntu 应用程序时,我都会以 root 身份登录。有什么办法可以将默认用户设置为我创建的用户吗?

users windows-10 windows-subsystem-for-linux

5
推荐指数
1
解决办法
6915
查看次数

如何在 Ubuntu 18.04 中安装最新的 OpenConnect?

在我的 Ubuntu 18.04 中,我安装了 OpenConnect v7.08-3。但它没有 GlobalProtect 支持。OpenConnect v8.02-1 具有 GlobalProtect 支持。如何在 ubuntu 18.04 中安装它?

software-installation openconnect 18.04

5
推荐指数
1
解决办法
8289
查看次数

GPG 错误,“http://archive.canonical.com 精确发布”的签名无效

今天,在我运行sudo apt-get update命令后,我得到了一个NO_PUBKEY错误。我试图解决方案,从这里这里这里(创建文件伎俩)。尽管如此,它们都没有工作,我仍然收到以下错误:

W: GPG error: http://archive.canonical.com precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5
W: The repository 'http://archive.canonical.com precise Release' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Run Code Online (Sandbox Code Playgroud)

所以,特别是我在打字时得到的

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv-keys 630239CC130E1A7FD81A27B140976EAF437D05B5
Run Code Online (Sandbox Code Playgroud)

     Executing: /tmp/apt-key-gpghome.FQVhh2ndBW/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com --recv-keys 630239CC130E1A7FD81A27B140976EAF437D05B5
gpg: key 40976EAF437D05B5: "Ubuntu …
Run Code Online (Sandbox Code Playgroud)

apt ppa gnupg

4
推荐指数
1
解决办法
4404
查看次数

如何破解受密码保护的zip的密码?

我已经安装了fcrackzip. 帮助页面fcrackzip

$ fcrackzip --h

fcrackzip version 1.0, a fast/free zip password cracker
written by Marc Lehmann <pcg@goof.com> You can find more info on*emphasized text*
http://www.goof.com/pcg/marc/

USAGE: fcrackzip
          [-b|--brute-force]            use brute force algorithm
          [-D|--dictionary]             use a dictionary
          [-B|--benchmark]              execute a small benchmark
          [-c|--charset characterset]   use characters from charset
          [-h|--help]                   show this message
          [--version]                   show the version of this program
          [-V|--validate]               sanity-check the algortihm
          [-v|--verbose]                be more verbose
          [-p|--init-password string]   use string as initial password/file
          [-l|--length min-max] …
Run Code Online (Sandbox Code Playgroud)

password zip

4
推荐指数
1
解决办法
8467
查看次数

gnome-terminal 无法启动(超时)

我刚刚从 Ubuntu 16.04 升级到 18.04。我的工作流程是使用 VcXsrv 从 Windows 连接到 Ubuntu(使用 X 隧道的 ssh),在 Ubuntu 上启动一个 xterm。在 xterm 中,我正在输入gnome-terminal以获得 gnome 终端。

由于升级,这不再起作用。我正进入(状态

$ gnome-terminal  
# Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.  
# Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Fehler beim Aufruf von StartServiceByName für org.gnome.Terminal: Zeitüberschreitung wurde …
Run Code Online (Sandbox Code Playgroud)

gnome-terminal 18.04

4
推荐指数
1
解决办法
1万
查看次数

如何重新安装 APT 工具?

我想重新安装APT Tool,所以我卸载了它,然后我意识到如果我只是删除/etc/apt目录可能会更好。有什么办法可以解决我的问题吗?

我的 Ubuntu 版本是 18.04.2 LTS,输出ls /etc/apt

root@user-OptiPlex-755:~# ls /etc/apt 
ls: cannot access '/etc/apt': No such file or directory
Run Code Online (Sandbox Code Playgroud)

更新:我已经重新安装了apt,但是,这是我的输出:

root@user-OptiPlex-755:~# sudo apt install --reinstall apt-utils ubuntu-minimal ubuntu-release-upgrader-gtk ubuntu-desktop update-manager update-notifier update-notifier-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package update-manager is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source …
Run Code Online (Sandbox Code Playgroud)

uninstall apt software-installation

4
推荐指数
1
解决办法
3342
查看次数

Ubuntu 无法加载,卡住了一个多小时,显示“开始等待 snapd 完全播种”

我的 Ubuntu 安装抱怨内存不足。所以我把上学期的一些旧学校文件移走了,重新启动,现在每次我开始时它都会挂在这上面。我只是尝试等待,因为谷歌表明它需要更多时间或熵,所以我尝试随机按键并移动鼠标,但什么也没发生。

我该如何摆脱这个问题并启动我的 Ubuntu?

boot ram snap

4
推荐指数
1
解决办法
2万
查看次数

睡眠中的 $RANDOM

我试图让我的脚本在 20 到 10 秒之间随机暂停,其中最大时间为 20 秒,最小时间为 10 秒。我正在使用这个 atm:

sleep $((10 + RANDOM % 20));
Run Code Online (Sandbox Code Playgroud)

但问题是它忽略了 20 的限制并超出了这个限制。还有其他方法吗?

scripts

4
推荐指数
1
解决办法
5612
查看次数

启动 Ubuntu WSL 时“访问被拒绝”

计算机重新启动后,Windows 10 上新安装的 Ubuntu 子系统向我展示了

Access is denied.
Press any key to continue... 
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

有什么解决办法吗?

windows-subsystem-for-linux

4
推荐指数
1
解决办法
9230
查看次数

`apt upgrade` 帮助出错

执行时出错 sudo apt upgrade

sudo apt upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libpulsedsp : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3.7 is installed
 pulseaudio : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3.7 is installed
 pulseaudio-module-bluetooth : Depends: libpulse0 (= 1:13.99.1-1ubuntu3.6) but 1:13.99.1-1ubuntu3.7 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Run Code Online (Sandbox Code Playgroud)

输入后出现 …

upgrade package-management apt

4
推荐指数
1
解决办法
1718
查看次数