如何修复 Ubuntu 上“...script returned error exit status 1”
今天,我在更新VirtualBox新版本的时候遇到了一个问题。
E: /var/cache/apt/archives/ subprocess new pre-removal script returned error exit status 1
解决:
我google了一下并找到了方法。下面是我解决的方法。
<span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> clean</span>
<span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> update </span><span class="pun">&&</span><span class="pln"> sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> upgrade</span>
这样几乎可以修复这个问题了。
如果你仍然有问题,那就试试下面的命令:
<span class="pln">sudo dpkg </span><span class="pun">--</span><span class="pln">configure </span><span class="pun">-</span><span class="pln">a</span>
<span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pun">-</span><span class="pln">f install</span>
或者你可以按照下面的方法从Oracle VirtualBox官网下载最新版本并安装。
<span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> update </span>
<span class="pln">sudo dpkg </span><span class="pun">-</span><span class="pln">i virtualbox</span><span class="pun">-</span><span class="lit">4.3</span><span class="pln">_4</span><span class="pun">.</span><span class="lit">3.24</span><span class="pun">-</span><span class="lit">98716</span><span class="pun">~</span><span class="typ">Ubuntu</span><span class="pun">~</span><span class="pln">raring_amd64</span><span class="pun">.</span><span class="pln">deb </span>
<span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pun">-</span><span class="pln">f install</span>
<span class="pln">sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> autoclean </span><span class="pun">&&</span><span class="pln"> sudo apt</span><span class="pun">-</span><span class="kwd">get</span><span class="pln"> autoremove</span>
干杯!
相关推荐
annan 2020-07-18
举 2020-06-27
harddays 2020-06-21
长安长夜Saint 2020-06-14
Magicsoftware 2020-06-04
soyo 2020-05-28
haocxy 2020-05-28
davidliu00 2020-05-26
coolhty 2020-05-20
niehanmin 2020-05-19
无缘公子 2020-05-19
fansenjun 2020-03-01
zmosquito 2020-05-10
玫瑰小妖 2020-05-10
jianghero 2020-05-05
jocleyn 2020-05-03
angqiuli 2020-04-26
waterv 2020-04-26
wcqwcq 2020-04-22