美文网首页
2019-10-21 Proxmox 解决更新问题401错误及l

2019-10-21 Proxmox 解决更新问题401错误及l

作者: AK蜗牛 | 来源:发表于2019-10-23 08:21 被阅读0次

更新及subscriber 提示:
修改 /etc/apt/source.list,改成如下:

deb http://ftp.uk.debian.org/debian buster main contrib
deb http://ftp.uk.debian.org/debian buster-updates main contrib
#security updates
deb http://security.debian.org buster/updates main contrib
deb http://download.proxmox.com/debian/pve buster pve-no-subscription
deb http://download.proxmox.com/debian/ceph-nautilus buster main

如果不是UK的,可以直接把.uk删掉,只留下http://ftp.debian.org/debian即可。

apt update
apt dist-upgrade 或 apt full-upgrade

更新期间提示401error, enterprise什么的,在/etc/apt/sources.list.d目录下有个pve-enterprise.list文件,把里面的这句注释掉。

#deb https://enterprise.proxmox.com/debian/pve buster pve-enterprise

locale问题,使用dpkg-reconfigure locales失败倒回,直接手工修改配置文件。

root@pve:~# dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_TERMINAL = "iTerm2",
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
  en_GB.UTF-8... done
  en_US.UTF-8... done
  zh_CN.GB2312... done
  zh_CN.GBK... done
  zh_CN.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
#  File generated by update-locale
    LC_ALL = (unset),
#
    LC_CTYPE = "UTF-8",
    LC_TERMINAL = "iTerm2",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LC_TERMINAL = "iTerm2",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

修改之前用locale -a 看一下是否正确,再修改vim /etc/default/locale文件,改成如下:

LANG=en_US.UTF-8
LC_ALL=en_US.UTF-8

或者你需要的其他设定。

相关文章

网友评论

      本文标题:2019-10-21 Proxmox 解决更新问题401错误及l

      本文链接:https://www.haomeiwen.com/subject/kgjfvctx.html