自从正式发布之日安装干净的 SSD 以来,我一直在运行 18.04,没有问题。
开机登录是秒(最多 10)
然后,我今天早上做了一个定期升级:
$ sudo apt update && sudo apt dist-upgrade
Run Code Online (Sandbox Code Playgroud)
安装/升级的软件包是:
Install: linux-headers-4.15.0-24:amd64 (4.15.0-24.26, automatic), linux-headers-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-extra-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-modules-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic), linux-image-4.15.0-24-generic:amd64 (4.15.0-24.26, automatic)
Upgrade: gnome-control-center-data:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-headers-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-image-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), linux-signed-generic:amd64 (4.15.0.23.25, 4.15.0.24.26), gnome-control-center-faces:amd64 (1:3.28.1-0ubuntu1.18.04.1, 1:3.28.1-0ubuntu1.18.04.2), linux-generic:amd64 (4.15.0.23.25, 4.15.0.24.26)
Run Code Online (Sandbox Code Playgroud)
升级完成后我重新启动,并注意到Ubuntu 加载/启动屏幕(登录前)有 2-3 分钟的延迟(点上没有指示任何进度/活动)。
我关闭电源并尝试再次启动,但现在一直出现这种延迟。关闭也慢得多。
更新 #1 (2018-07-03):
对 systemd 的分析:
$ sudo systemd-analyze blame
3min 53.073s plymouth-quit-wait.service
2min …Run Code Online (Sandbox Code Playgroud) 最近apt update && apt full-upgrade我在apt full-upgrade随后运行时开始收到以下错误:
Get:4 https://repo.skype.com/deb stable InRelease [4,502 B]
Err:4 https://repo.skype.com/deb stable InRelease
The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://repo.skype.com/deb stable InRelease: The following signatures were invalid: EXPKEYSIG 1F3045A5DF7587C3 Skype Linux Client Repository <se-um@microsoft.com>
W: Failed to fetch https://repo.skype.com/deb/dists/stable/InRelease The following signatures were invalid: …Run Code Online (Sandbox Code Playgroud) 有没有办法让时钟(顶部栏)显示秒?
我查看了“时间和日期”设置选项卡,但仍然没有几秒钟的内容。
我可以将 Ubuntu 转换为另一种形式的 Ubuntu,例如 Kubuntu 或 Ubuntu Studio,并且系统将自己识别为新形式吗?
更新:在得到答案并与人交谈后,我设法获得了有关此主题的大量信息。然后我写了一篇关于在 Ubuntu 系统之间转换的文章 -在 Ubuntus 之间转换。
在全新的硬件安装之后,我在软件应用程序中找到了“GNOME Tweaks”并安装了它。随后我在终端运行:
sudo apt install gnome-tweak-tool
Run Code Online (Sandbox Code Playgroud)
令我惊讶的是它安装了另一个包,而不是升级。
Tweak Tool 工作正常,但我想知道我现在是否安装了该工具的 2 个版本,如果是,我应该删除哪一个?
更新
我发现这gnome-tweaks是已安装的主要软件包:
$ apt show gnome-tweaks
...
Breaks: gnome-tweak-tool (<= 3.27.4)
Replaces: gnome-tweak-tool (<= 3.27.4)
APT-Manual-Installed: yes
...
$ apt show gnome-tweak-tool
...
Source: gnome-tweaks
Depends: gnome-tweaks
...
Run Code Online (Sandbox Code Playgroud) GIMP 2.10 (snap version) 不允许我打开/media目录,所以我无法访问我的外部 USB 驱动器。我收到以下错误消息:
如果我尝试通过右键单击图像文件 > 使用 GIMP从 USB 驱动器打开Nautilus 中的图像文件,我会收到相同的错误消息
我用 snap 安装了 GIMP 2.10:
sudo snap install gimp
Run Code Online (Sandbox Code Playgroud)
显然我在配置方面缺少一些东西,但我找不到发布的类似问题。
更新:
有人向我指出了解决问题的解决方案:
如何获得最新的 GIMP 版本?
安装后,您需要明确授予 snap GIMP 包访问外部媒体的权限:
sudo snap connect gimp:removable-media
Run Code Online (Sandbox Code Playgroud)
N0rbert 提到了为什么我们必须执行这个额外的步骤:
“...如果应用程序没有自动连接可移动媒体,我们需要手动连接它”
我的问题是,为什么默认情况下创建的应用程序包无法访问外部媒体?
然而,面板以以下格式显示日期:'Tue May 8'
我缺少什么技巧吗?
此外,我没有看到任何地方可以使用代码进一步自定义日期格式,例如。%Y-%m-%d(对于 ISO 8601 日期格式)
我注意到有一个 GNOME Shell 扩展:日期时间格式,它似乎允许进一步定制,但如果可能的话,我宁愿使用核心功能。
这是一个类似的问题这一个,但17.10问题无人应答,而我得到的印象是GNOME在17.10有点早进入,也许没有完全形成。
更新:有一种方法(不包括扩展名),通过编辑和执行适合于实现您选择的日期和时间格式gnome.desktop localisation LC_MESSAGES的文件,描述在这里
要查找比我正在使用的最新 8 更旧的文件:
find . -maxdepth 1 -type f -printf '%T@ %p\0' | sort -rz | sed -z 1,8d
Run Code Online (Sandbox Code Playgroud)
该-printf '%T@ %p\0'命令将最后修改的时间戳(表示为自 1970 年 1 月 1 日,格林威治标准时间 00:00 以来的秒数,带有小数部分)到匹配的每个以零结尾的文件名的开头,例如:
1597765267.7628475560 ./fileName2.txt1597765264.0267179360 ./fileName1.txt
Run Code Online (Sandbox Code Playgroud)
为了通过管道删除这些最旧的文件xargs -0 gio trash,我需要删除时间戳。所以我添加了另一个 sed 命令来做到这一点:
find . -maxdepth 1 -type f -printf '%T@ %p\0' | sort -rz | sed -z 1,8d | sed -z "s/^[0-9]*.[0-9]* //g"
Run Code Online (Sandbox Code Playgroud)
现在我有正确的输出,但是有没有更好更有效的方法?
基于@Quasímodo 的回答,我尝试通过使用 sed 删除模式格式进一步简化(因为我实际上并没有替换任何内容),但我没有得到任何输出:
find …Run Code Online (Sandbox Code Playgroud) 我通常将本地 *.desktop 文件放在~/.local/share/applications. 因为最近当我按下按键后搜索它们时,它们不再出现SUPER。不过它们都可以从终端启动。
我该怎么做才能从仪表板再次访问这些程序?
该系统是gnome3上的ubuntu Bionic 。
有没有一种方法可以command-line/bash安全地关闭 Chromium(运行多个选项卡),而不会导致应用程序错误关闭。
使用(例如):
$ pkill -3 chromium
Run Code Online (Sandbox Code Playgroud)
(man signal显示-3表示信号SIGQUIT)
(我理解的是 shutdown 命令如何终止应用程序)
导致 Chromium 在您下次启动时给出以下错误消息:
有没有办法在 Gnome 顶部栏中的系统音量控制图标旁边添加系统麦克风控制图标?
另外,为什么这个控件不像系统音量那样默认存在?
到目前为止我的gpg备份过程是:
$ gpg --export-ownertrust > PATH/TO/BACKUP/ownertrust.txt
$ cp -u ~/.gpgrc PATH/TO/BACKUP/
$ cp -u ~/.gnupg/gpg.conf ~/.gnupg/gpg-agent.conf PATH/TO/BACKUP/
$ gpg --export-secret-keys --armor
copy and paste/print/save output to your choice of secure place (ideally offline and offsite)
Run Code Online (Sandbox Code Playgroud)
到目前为止我的gpg 恢复过程是:
$ gpg --list-keys # make sure gpg is installed and initiated (install if necessary)
$ rm ~/.gnupg/trustdb.gpg
Copy private key to temporary file if not in file format
$ gpg --import TEMPFILE.asc # substitute TEMPFILE with your sig/asc filename
$ gpg …Run Code Online (Sandbox Code Playgroud) 我在 Ubuntu 22.04 发布后不久就安装了它(在硬件上正常安装)。它随 LibreOffice 7.3.2.2 一起提供。
\n问题是键盘快捷键Ctrl+;不再将当前日期插入单元格中。相反,它输入一个带下划线的“e”,这实际上是插入表情符号的起点。如果输入Ctrl+;然后按Space,则会弹出一个菜单,显示不同类别的表情符号:
\n\n菜单Insert \xe2\x86\x92 Date,仍然显示Ctrl+;是键盘快捷键,但显然有问题。
\nCtrl+ Shift+;确实插入了应有的当前时间。
\n这是可以修复的还是 LibreOffice 的错误?
\n18.04 ×3
gnome ×3
22.04 ×2
bash ×2
command-line ×2
gnupg ×2
snap ×2
.desktop ×1
20.04 ×1
apt ×1
backup ×1
boot ×1
chromium ×1
clock ×1
gimp ×1
gnome-shell ×1
gnome-tweaks ×1
kubuntu ×1
libreoffice ×1
locale ×1
microphone ×1
panel ×1
permissions ×1
plymouth ×1
restore ×1
sed ×1
shutdown ×1
signature ×1
skype ×1
sound ×1
tweak ×1
usb ×1