当我以 root 身份运行以下命令“sudo apt upgrade”时,在 Digital Ocean 上出现以下错误。
怎么了?
Removing mysql-server-5.7 (5.7.33-0ubuntu0.16.04.1) ...
dpkg: error processing package mysql-server-5.7 (--remove):
cannot remove '/usr/bin/mysqld_safe': Permission denied
Removing mysql-client-5.7 (5.7.33-0ubuntu0.16.04.1) ...
dpkg: error processing package mysql-client-5.7 (--remove):
cannot remove '/usr/bin/mysqlrepair': Permission denied
Removing mysql-client-core-5.7 (5.7.33-0ubuntu0.16.04.1) ...
dpkg: error processing package mysql-client-core-5.7 (--remove):
cannot remove '/usr/bin/mysql': Permission denied
Removing mysql-server-core-5.7 (5.7.33-0ubuntu0.16.04.1) ...
dpkg: error processing package mysql-server-core-5.7 (--remove):
cannot remove '/usr/bin/innochecksum': Permission denied