软件包升级失败 dpkg 返回错误代码 (1)

软件包升级失败 dpkg 返回错误代码 (1)

因此,在升级到 Ubuntu 14.10 Utopic Unicorn 时,它在尝试安装新东西时遇到了错误,其中一个是 Noobslab“以管理员身份运行”,它无法升级,现在我在安装它时遇到了这个问题

(synaptic:5727): GLib-CRITICAL **: g_child_watch_add_full: assertion 'pid > 0' failed
(Reading database ... 319717 files and directories currently installed.)
Preparing to unpack .../open-as-administrator_3.2~utopic~NoobsLab.com_all.deb ...
rm: cannot remove ‘/root/.local/share/nautilus/scripts/Open_as_Administrator’: No such file or directory
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg: trying script from the new package instead ...
rm: cannot remove ‘/root/.local/share/nautilus/scripts/Open_as_Administrator’: No such file or directory
dpkg: error processing archive /var/cache/apt/archives/open-as-administrator_3.2~utopic~NoobsLab.com_all.deb (--unpack):
 subprocess new pre-removal script returned error exit status 1
mv: cannot stat ‘/usr/share/bin/Open_as_Administrator’: No such file or directory
chmod: cannot access ‘/root/.local/share/nautilus/scripts/’: No such file or directory

 +-+-+-+-+-+-+-+-+-+-+-+-+
 |N o o b s L a B . c o m|
 +-+-+-+-+-+-+-+-+-+-+-+-+


keep visit on www.NoobsLab.com

Errors were encountered while processing:
 /var/cache/apt/archives/open-as-administrator_3.2~utopic~NoobsLab.com_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

答案1

包裹破损了。

你的快速而肮脏的黑客将是

sudo mkdir -p /root/.local/share/nautilus/scripts
sudo touch /root/.local/share/nautilus/scripts/Open_as_Administrator

但是随着包裹的修改,/root/.local/我会说它的质量非常低,不建议使用它......

相关内容