Clonezilla 安装 - 子进程 /usr/bin/dpkg 返回错误代码 (1)

Clonezilla 安装 - 子进程 /usr/bin/dpkg 返回错误代码 (1)

我正在尝试安装 clonezilla,但收到错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
clonezilla is already the newest version (3.21.13-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up clonezilla (3.21.13-1) ...
ln: target '/opt/' is not a directory: No such file or directory
dpkg: error processing package clonezilla (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 clonezilla
E: Sub-process /usr/bin/dpkg returned an error code (1)

有人能告诉我该怎么做才能解决这个问题吗?

附言我正在使用 Ubuntu gnome 16.10。

答案1

您需要/opt手动创建目录并重试:

sudo mkdir -p /opt
sudo apt-get install -f

我实际上将其归类为一个错误,因为软件包安装后脚本盲目地假设这样的目录存在,即使在默认的 Ubuntu(或 Debian)安装中并非如此。

如果您想友善地支持 Clonezilla 等免费开源软件,请向相关软件包的维护者提交错误报告。

相关内容