Ubuntu 19.04 升级错误:/usr/lib/python3.7/html/__pycache__': 权限被拒绝

Ubuntu 19.04 升级错误:/usr/lib/python3.7/html/__pycache__': 权限被拒绝

我升级到了 Ubuntu - 从 18.10 到 19.04。现在登录后出现错误:

Error found when loading /etc/profile:
find: '/usr/lib/python3.7/html/__pycache__': Permission denied 
find: '/usr/lib/python3.7/xml/etree/__pycache__': Permission denied

我已经阅读了另一个要运行的主题:

cat /etc/profile

我得到的输出是:

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "${PS1-}" ]; then
if [ "${BASH-}" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
  . /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
  PS1='# '
else
  PS1='$ '
fi
fi
fi

if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
  . $i
fi
done
unset i
fi

任何想法?

相关内容