错误处理包linux-image-4.15.0-20-generic

时间:2018-08-14 08:07:27

标签: ubuntu-18.04

当我想更新或安装任何软件包时,出现此错误:

例如:whealln我执行此sudo apt升级或sudo apt安装zsh

public abstract class VmBase
{
    private readonly Dictionary<string, ICommand> map = new Dictionary<string, ICommand>();
    protected ICommand RelayCommand(Action execute, Func<bool> canExecute, [CallerMemberName] string key = null)
    {
        if (!map.ContainsKey(key))
        {
            map.Add(new /*Relay or any ICommand impl*/Command(execute, canExecute));
        }
        return map[key];
    }
}

public class MyVm : VmBase
{
    public ICommand RunSomething => RelayCommand(() => { /*ApplyLike code goes here*/ }, () => true);
}

如何解决?

1 个答案:

答案 0 :(得分:0)

这些命令有望运行。他们将彻底清理并重新安装。

sudo apt-get autoremove   
sudo apt-get --purge remove && sudo apt-get autoclean   
sudo apt-get -f install    
sudo apt-get update    
sudo apt-get upgrade && sudo apt-get dist-upgrade   
sudo dpkg-reconfigure -a   
sudo dpkg --configure -a