PinguyBuilder 在 Ubuntu 18.04 上损坏

PinguyBuilder 在 Ubuntu 18.04 上损坏

我运行的是内核为 4.15 的 Lubuntu 18.04,但 PinguyBuilder 一直出现问题。初始 iso 生成没有问题,启动也正常,但尝试安装时遇到错误。

启动 ubiquity 并选择安装选项后,会弹出“ubi-partman 崩溃,退出代码为 10”。

经过谷歌搜索后,我发现了一个类似的问题,其中一位成员建议在制作 iso 之前将“/swapfile”添加到排除目录中,我按照做了,但错误仍然存​​在。

以下是详细描述该问题的系统日志输出:

显然,创建主 / 目录(特别是 /var)时出现权限错误。知道是什么原因造成的吗?

Jul 16 04:04:25 marc kernel: [  170.813514]  sda:
Jul 16 04:04:25 marc ubiquity[1507]: Step_before = stepKeyboardConf
Jul 16 04:04:25 marc ubiquity[1507]: switched to page prepare
Jul 16 04:04:30 marc ubiquity[1507]: debconffilter_done: ubi-prepare (current: ubi-prepare)
Jul 16 04:04:30 marc ubiquity[1507]: Step_before = stepPrepare
Jul 16 04:04:30 marc activate-dmraid: No Serial ATA RAID disks detected
Jul 16 04:04:30 marc kernel: [  175.780041] raid6: sse2x1   gen() 15205 MB/s
Jul 16 04:04:30 marc kernel: [  175.828039] raid6: sse2x1   xor() 10622 MB/s
Jul 16 04:04:30 marc kernel: [  176.260036] raid6: avx2x4   gen() 39344 MB/s
Jul 16 04:04:30 marc kernel: [  176.308036] raid6: avx2x4   xor() 25335 MB/s
Jul 16 04:04:30 marc kernel: [  176.308037] raid6: using algorithm avx2x4 gen() 39344 MB/s
Jul 16 04:04:30 marc kernel: [  176.308037] raid6: .... xor() 25335 MB/s, rmw enabled
Jul 16 04:04:30 marc kernel: [  176.308038] raid6: using avx2x2 recovery algorithm
Jul 16 04:04:30 marc kernel: [  176.321425] xor: automatically using best checksumming function   avx       
Jul 16 04:04:30 marc kernel: [  176.359053] Btrfs loaded, crc32c=crc32c-intel
Jul 16 04:04:30 marc kernel: [  176.398606] JFS: nTxBlock = 8192, nTxLock = 65536
Jul 16 04:04:31 marc kernel: [  176.440960] SGI XFS with ACLs, security attributes, realtime, no debug enabled
Jul 16 04:04:31 marc partman:   No matching physical volumes found
Jul 16 04:04:31 marc partman:   Reading volume groups from cache.
Jul 16 04:04:31 marc kernel: [  176.496250] ata2.00: Enabling discard_zeroes_data
Jul 16 04:04:31 marc kernel: [  176.497254]  sda:
Jul 16 04:04:31 marc kernel: [  176.688766] ata2.00: Enabling discard_zeroes_data
Jul 16 04:04:31 marc kernel: [  176.689559]  sda:
Jul 16 04:04:31 marc kernel: [  176.702307] ata2.00: Enabling discard_zeroes_data
Jul 16 04:04:31 marc kernel: [  176.702998]  sda:
Jul 16 04:04:31 marc kernel: [  177.267814] ntfs: driver 2.1.32 [Flags: R/O MODULE].
Jul 16 04:04:31 marc kernel: [  177.318845] QNX4 filesystem 0.2.3 registered.
Jul 16 04:04:31 marc ubiquity[1507]: Device free not found in os-prober output
Jul 16 04:04:31 marc ubiquity[1507]: switched to page partman
Jul 16 04:04:34 marc dbus-daemon[4189]: [session uid=1000 pid=4187] AppArmor D-Bus mediation is enabled
Jul 16 04:04:37 marc kernel: [  182.976715] ata2.00: Enabling discard_zeroes_data
Jul 16 04:04:37 marc kernel: [  182.977654]  sda:
Jul 16 04:04:41 marc ubiquity[1507]: debconffilter_done: ubi-partman (current: ubi-partman)
Jul 16 04:04:41 marc ubiquity[1507]: Step_before = stepPartAsk
Jul 16 04:04:41 marc ubiquity[1507]: switched to page timezone
Jul 16 04:04:42 marc ubiquity[1507]: Geoname lookup for "New York" failed: 2 Error resolving “geoname-lookup.ubuntu.com”: Temporary failure in name resolution
Jul 16 04:04:42 marc kernel: [  187.784710] ata2.00: Enabling discard_zeroes_data
Jul 16 04:04:42 marc kernel: [  187.785823]  sda: sda1 sda2
Jul 16 04:04:42 marc partman: mke2fs 1.44.1 (24-Mar-2018)
Jul 16 04:04:43 marc localechooser: info: debian-installer/language preseeded to 'en' (seen: false)
Jul 16 04:04:43 marc localechooser: info: debian-installer/country preseeded to 'US' (seen: true)
Jul 16 04:04:43 marc localechooser: info: debian-installer/locale preseeded to 'en_US.UTF-8' (seen: true)
Jul 16 04:04:43 marc localechooser: info: Language = 'en'
Jul 16 04:04:43 marc localechooser: info: line=en;0;US;en_US.UTF-8;;console-setup
Jul 16 04:04:43 marc localechooser: info: Set debian-installer/language = 'en'
Jul 16 04:04:43 marc localechooser: info: Default country = 'US'
Jul 16 04:04:43 marc localechooser: info: Default locale = 'en_US.UTF-8'
Jul 16 04:04:43 marc localechooser: info: Set debian-installer/consoledisplay = 'console-setup'
Jul 16 04:04:43 marc localechooser: info: Set debian-installer/country = 'US'
Jul 16 04:04:43 marc localechooser: info: Set debian-installer/locale = 'en_US.UTF-8'
Jul 16 04:04:43 marc localechooser: info: System locale (debian-installer/locale) = 'en_US.UTF-8'
Jul 16 04:04:43 marc ubiquity: /usr/lib/ubiquity/localechooser/localechooser: 910: [: C.UTF-8: unexpected operator
Jul 16 04:04:43 marc ubiquity[1507]: debconffilter_done: ubi-timezone (current: ubi-timezone)
Jul 16 04:04:43 marc ubiquity[1507]: Step_before = stepLocation
Jul 16 04:04:43 marc ubiquity[1507]: switched to page usersetup
Jul 16 04:04:47 marc ubiquity[1507]: debconffilter_done: ubi-usersetup (current: ubi-usersetup)
Jul 16 04:04:47 marc ubiquity[1507]: Step_before = stepUserInfo
Jul 16 04:04:49 marc kernel: [  195.289511] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: errors=remount-ro
Jul 16 04:04:52 marc partman-swapfile: 2097152+0 records in
Jul 16 04:04:52 marc partman-swapfile: 2097152+0 records out
Jul 16 04:04:52 marc partman-swapfile: 2147483648 bytes (2.1 GB, 2.0 GiB) copied, 3.0585 s, 702 MB/s
Jul 16 04:04:55 marc kernel: [  201.235046] Adding 2097148k swap on /target/swapfile.  Priority:-2 extents:6 across:2260988k SSFS
Jul 16 04:04:55 marc ubiquity: File descriptor 3 (pipe:[37521]) leaked on pvs invocation. Parent PID 6445: /bin/sh
Jul 16 04:04:56 marc ubiquity[1507]: debconffilter_done: ubiquity.components.partman_commit (current: None)
Jul 16 04:04:56 marc /install.py: keeping packages due to preseeding:
Jul 16 04:04:56 marc /install.py: keeping language packs for: en_US.UTF-8
Jul 16 04:04:56 marc ubiquity: mkdir: cannot create directory ‘/target/var’: Permission denied
Jul 16 04:07:26 marc /install.py: Terminated ubiquity update process.

答案1

我已将此脚本(当前版本为 5.1.8)用于 xubuntu-18.04.1。
脚本创建的 ISO 映像不可启动。但是,您确实有一个很好的解决方法来解决这个问题。

您将在 的工作目录中找到一个名为 ISOTMP 的目录pinguybuilder。只需将 ISOTMP 下的所有文件夹复制到新格式化的可启动 USB 棒,然后grub-install对 USB 棒执行 。
您的系统应该可以从此处启动,不会出现任何问题。

对所有外语用户来说,这是个警告!建议您pinguybuilder在使用脚本之前先编辑一下!从 deb 中
提取文件(它在文件夹中)并注释掉以下行:pinguybuilder/usr/bin

apt-get -y -q purge firefox-locale-en libreoffice-help-en-*

相关内容