我正在尝试运行以下命令
$ sudo apt-get install cron
但它给出了以下错误
E: dpkg was interrupted,
答案1
解决方案很简单,是完整错误消息的一部分
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
所以
sudo dpkg --configure -a
进而
sudo apt-get install cron