我尝试使用以下命令安装 lamp 服务器:sudo tasksel install lamp-server
但我总是收到这个错误:
Can't call method "set" on an undefined value at /usr/share/perl5/Debconf/FrontEnd.pm line 126, <GEN0> line 5.
Use of uninitialized value $ret in scalar chomp at /usr/share/perl5/Debconf/Client/ConfModule.pm line 132, <STDIN> line 4.
Use of uninitialized value $ret in split at /usr/share/perl5/Debconf/Client/ConfModule.pm line 133, <STDIN> line 4.
Use of uninitialized value $ret[0] in string eq at /usr/share/perl5/Debconf/Client/ConfModule.pm line 134, <STDIN> line 4.
Use of uninitialized value $ret[0] in string eq at /usr/bin/debconf-apt-progress line 173, <STDIN> line 4.
tasksel: aptitude failed (255)
我尝试重新安装taskel,但没有成功
答案1
Tim 几乎说对了 - 根据 taskel 手册,你可以使用sudo apt-get
加上插入符号来执行 taskel“任务”:
sudo apt-get install ubuntu-desktop^
我遇到了同样的错误,上述命令对我有用。