---
title: "Proxmox apt-get update 更新报错"
id: "89"
type: "post"
slug: "proxmox"
published_at: "2017-10-27T08:55:47+00:00"
modified_at: "2018-09-12T11:57:58+00:00"
url: "https://www.hitsword.org/2017/89.html"
markdown_url: "https://www.hitsword.org/2017/89.md"
excerpt: "Proxmox apt-get update 更新报错： 这个是因为没有购买401无权使用这个更新源,可以修改 […]"
taxonomy_category:
  - "Proxmox"
taxonomy_post_tag:
  - "KVM"
  - "Proxmox"
  - "更新"
---

# Proxmox apt-get update 更新报错

Proxmox apt-get update 更新报错：

```
Err:4 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise amd64 Packages
  401  Unauthorized
Ign:5 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise all Packages
Ign:6 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise Translation-en
Ign:8 http://ftp.debian.org/debian stretch InRelease
Ign:7 https://enterprise.proxmox.com/debian/pve stretch/pve-enterprise Translation-en_US
Hit:9 http://ftp.debian.org/debian stretch Release
Reading package lists... Done
W: The repository 'https://enterprise.proxmox.com/debian/pve stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch https://enterprise.proxmox.com/debian/pve/dists/stretch/pve-enterprise/binary-amd64/Packages  401  Unauthorized
E: Some index files failed to download. They have been ignored, or old ones used instead.
```

  
 这个是因为没有购买401无权使用这个更新源,可以修改/etc/apt/sources.list.d/pve-enterprise.list注释掉解决  
```
#deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise
```

  
 Proxmox VE 无订阅更新源,不建议生产环境使用.  
 修改/etc/apt/sources.list  
```
deb http://ftp.debian.org/debian stretch main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib
```
