跟进Install Grub2 to PBR,并根据@mook765 打开一个新问题以提供指向 boot-info-summary 的链接:
http://paste.ubuntu.com/p/SnT6Tcdmqk/
问题又来了:
% grub-install /dev/sdc5
Installing for i386-pc platform.
grub-install: warning: File system `ext2' doesn't support embedding.
grub-install: warning: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
grub-install: error: will not proceed with blocklists
Run Code Online (Sandbox Code Playgroud)
即,grub-install拒绝继续处理阻止列表,说“文件系统‘ext2’不支持嵌入”。但是,我的不是ext2文件系统而是ext4,它不需要 fsck:
$ mount | grep /dev/sdc5
/dev/sdc5 on /mnt/osp type ext4 (rw,noatime,nodiratime,data=ordered)
% umount …Run Code Online (Sandbox Code Playgroud) 从“添加用户到sudoers后是否需要重新启动? ”,显然需要重新启动Sudo服务,或者重新启动。然而,适用于 Ubuntu 14.04 的推荐方式不再适用于 Ubuntu 18+:
$ sudo service sudo restart
Failed to restart sudo.service: Unit sudo.service is masked.
Run Code Online (Sandbox Code Playgroud)
解决方案?
我debootstrap是这样跑的:
sudo debootstrap --verbose --arch=amd64 zesty chroot
Run Code Online (Sandbox Code Playgroud)
我已经安装了apt-cacher-ng。
如何让它们一起工作,以便在我多次运行 debootstrap 时使用缓存而不是重复下载相同的包?
我曾尝试使用 MIRROR 选项并设置 http_proxy 变量,但是当我离线运行时它会出错:
$ sudo http_proxy="http://localhost:3142" debootstrap --verbose --arch=amd64 zesty chroot http://localhost:3142/uburep
I: Retrieving InRelease
I: Failed to retrieve InRelease
I: Retrieving Release
E: Failed getting release file http://localhost:3142/uburep/dists/zesty/Release
Run Code Online (Sandbox Code Playgroud)
我使用,http://localhost:3142/uburep因为这是我在缓存中找到的内容:
$ find /var/cache/apt-cacher-ng -name Release
/var/cache/apt-cacher-ng/security.ubuntu.com/ubuntu/dists/zesty-security/Release
/var/cache/apt-cacher-ng/uburep/dists/zesty-updates/Release
/var/cache/apt-cacher-ng/uburep/dists/zesty-backports/Release
/var/cache/apt-cacher-ng/uburep/dists/zesty/Release
Run Code Online (Sandbox Code Playgroud)
我尝试添加 Defaults env_keep += "http_proxy https_proxy ftp_proxy"到 /etc/sudoers(通过 sudo visudo),但也无济于事。
如果我删除 MIRROR 选项并离线运行 debootstrap,那么它似乎根本不使用 apt-cacher-ng(注意它是如何不再寻找 localhost 的)。
E: Failed getting release …Run Code Online (Sandbox Code Playgroud) 如何删除系统语言环境,与如何删除不必要的语言环境中所述的打包语言环境相反?
我最近收到以下错误:
locale: Cannot set LC_ALL to default locale: No such file or directory
Run Code Online (Sandbox Code Playgroud)
en_US我的系统中有语言环境:
$ grep en /var/lib/locales/supported.d/local
en_US ISO-8859-1
en_US.UTF-8 UTF-8
$ locale -a | grep en
en_US
en_US.iso88591
en_US.utf8
Run Code Online (Sandbox Code Playgroud)
但不是en,正如抱怨的那样perl:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "",
LC_ALL = (unset),
LC_MEASUREMENT = "en",
LC_PAPER = "en",
LC_MONETARY = "en",
LC_NAME = "en",
LC_ADDRESS = "en",
LC_NUMERIC …Run Code Online (Sandbox Code Playgroud) 我已经得到了fcitx我相信的所有包裹:
fcitx_1:4.2.9.8-3
fcitx-bin_1:4.2.9.8-3
fcitx-config-common_0.4.10-3
fcitx-config-gtk_0.4.10-3
fcitx-data_1:4.2.9.8-3
fcitx-frontend-all_1:4.2.9.8-3
fcitx-frontend-gtk2_1:4.2.9.8-3
fcitx-frontend-gtk3_1:4.2.9.8-3
fcitx-frontend-qt5:amd64_1.2.5-1ubuntu2
fcitx-googlepinyin:amd64_0.1.6-4build1
fcitx-module-dbus_1:4.2.9.8-3
fcitx-module-kimpanel_1:4.2.9.8-3
fcitx-module-lua_1:4.2.9.8-3
fcitx-module-x11_1:4.2.9.8-3
fcitx-modules_1:4.2.9.8-3
fcitx-ui-classic_1:4.2.9.8-3
fcitx5-module-quickphrase-editor:amd64_1.2.5-1ubuntu2
libfcitx-config4:amd64_1:4.2.9.8-3
libfcitx-core0:amd64_1:4.2.9.8-3
libfcitx-gclient1:amd64_1:4.2.9.8-3
libfcitx-qt5-1:amd64_1.2.5-1ubuntu2
libfcitx-qt5-data_1.2.5-1ubuntu2
libfcitx-utils0:amd64_1:4.2.9.8-3
Run Code Online (Sandbox Code Playgroud)
但我的 fcitx 配置仍然显示空方法:
我已经尝试过fcitx-config-gtk3和fcitx-configtool。两者都显示空方法。
因此,使用热键尝试调用/触发fcitx根本没有效果。
有人可以帮忙吗?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.10
Release: 21.10
Codename: impish
Run Code Online (Sandbox Code Playgroud) 我对 Debian 软件包版本顺序有点困惑。
看看下面两个 Debian 软件包版本,为什么第一个版本<=比第二个版本高?
0-emacs-29.1.90~202401142128~ubuntu20.04.1
0-emacs-28.3-rc1~202302201437~ubuntu20.04.1
Run Code Online (Sandbox Code Playgroud)
我认为 29 > 28 所以第一个应该是最近的,不是吗?