ubuntu之E:Could not open lock file /var/lib/dpkg/lock - open (2:No such file or direction)

出现该错误的原因是以管理员权限误删除 /var/lib/dpkg/lock

j解决方法:#touch lock

   #sudo mv lock /var/lib/dpkg

再次apt-get install vim

E: Could not open lock file /var/lib/dpkg/status - 

解决方法: #touch status

   #sudo mv status /var/lib/dpkg


你可能感兴趣的:(ubuntu)