抱歉,您的浏览器无法访问本站
本页面需要浏览器支持(启用)JavaScript
了解详情 >

1.安装 ifupdown2 不成功

  • 提示信息

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    类似提示
    : (pve-apt-hook) !! WARNING !!
    W: (pve-apt-hook) You are attempting to remove the meta-package 'proxmox-ve'!
    W: (pve-apt-hook)
    W: (pve-apt-hook) If you really want to permanently remove 'proxmox-ve' from your system, run the following command
    W: (pve-apt-hook) touch '/please-remove-proxmox-ve'
    W: (pve-apt-hook) run apt purge proxmox-ve to remove the meta-package
    W: (pve-apt-hook) and repeat your apt invocation.
    W: (pve-apt-hook)
    W: (pve-apt-hook) If you are unsure why 'proxmox-ve' would be removed, please verify
    W: (pve-apt-hook) - your APT repository settings
    W: (pve-apt-hook) - that you are using 'apt full-upgrade' to upgrade your system
    E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
  • 解决方案

1
2
$ echo "deb http://download.proxmox.com/debian/pve buster pve-no-subscription" >> /etc/apt/sources.list
$ apt update && apt install ifupdown2

2.设置为国内源

1
2
3
4
5
6
# 删除企业源
$ rm -rf /etc/apt/sources.list.d/pve-enterprise.list
#下载秘钥
$ wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg
# 添加社区源
$ echo "deb http://download.proxmox.wiki/debian/pve stretch pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list
1
2
3
4
5
6
7
8
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian-security buster/updates main
deb-src http://mirrors.aliyun.com/debian-security buster/updates main
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib

评论