当我今天早些时候尝试升级 Fedora 26 服务器时,我在下载软件包后收到此错误消息:
warning: /var/cache/dnf/forensics-5e8452ee3a114fbe/packages/protobuf-c-1.3.0-1.fc26.x86_64.rpm: Header V4 RSA/SHA1 Signature, key ID 87e360b8: NOKEY
Importing GPG key 0x87E360B8:
Userid : "CERT Forensics Operations and Investivations Team <forensics@cert.org>"
Fingerprint: 26A0 829D 5C01 FC51 C304 9037 E97F 3E0A 87E3 60B8
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-cert-forensics-2018-04-07
Is this ok [y/N]: n
Didn't install any keys
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
Run Code Online (Sandbox Code Playgroud)
所以我中止了升级,我尝试重新dnf clean packages …
在foo.sh 中,为了便于阅读,我将一些命令(或函数)拆分为多行并添加了注释:
#!/bin/zsh
#
# foo.sh: print computer information
foo() {
uname \
-p `# processor arch` \
-s `# os name` \
-v `# os version`
}
foo
Run Code Online (Sandbox Code Playgroud)
我可以正常运行:
$ ./foo.sh
Darwin 123... (correct output)
Run Code Online (Sandbox Code Playgroud)
但是,如果我使用source
or 获取它.
,我的 shell 会报告以下错误,尽管它自己使用我指定的参数 ( -psv
)成功运行了命令:
% . ./foo.sh
./foo.sh:2: command not found: #
./foo.sh:2: command not found: #
./foo.sh:2: command not found: #
Darwin 123... (correct output as before)
Run Code Online (Sandbox Code Playgroud)
我想知道为什么会发生这种情况?我该如何解决?因为我的主要目标是定义一些函数,获取它们,并根据需要在 shell 中调用它们。谢谢!
在过去的 Fedora 版本中,Gnome Tweak Tool 可用于为 Retina 显示器打开 HiDPI。但是,我发现 Fedora 27 中缺少该选项(至少对于我正在使用的测试版,但感觉这不是测试版的问题)。
在尝试解决方法时,我发现此命令有效:(再次登录后生效)
$ gsettings set org.gnome.desktop.interface scaling-factor 2
Run Code Online (Sandbox Code Playgroud)
但是这个命令对一些应用程序没有很好的支持,比如火狐甚至系统文件浏览器。我相信应该有一些图形方式来做到这一点,对吗?