oneclickvirt/pve

需要移除firmware-ath9k-htc

Closed this issue · 7 comments

问题概述

按正常流程安装出现:

dpkg: error processing archive /var/cache/apt/archives/pve-firmware_3.9-1_all.deb (--unpack):
 trying to overwrite '/lib/firmware/ath9k_htc/htc_7010-1.4.0.fw', which is also in package firmware-ath9k-htc 1.4.0-108-gd856466+dfsg1-1.3+deb12u1

执行:

dpkg --remove --force-remove-reinstreq firmware-ath9k-htc

再运行:

apt --fix-broken install

后才可安装完毕。但此时脚本已经因错误终止。重启后,可以打开Proxmox面板。但再次运行脚本,提示Proxmox已安装,无法完成后续配置。

环境

Debian 12 on ESXI 6.5

root@debian12:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
# This is an autoconfigured IPv6 interface
allow-hotplug ens33
iface ens33 inet static
address 202.*.*.*(打码)
gateway 202.*.*.*(打码)
netmask 255.255.255.0
root@debian12:~# ip route
default via 202.*.*.*(打码) dev ens33 onlink 
169.254.0.0/16 dev ens33 scope link metric 1000 
202.*.*.*(打码)/24 dev ens33 proto kernel scope link src 202.(打码)
root@debian12:~# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 00:0c:29:ff:e2:47 brd ff:ff:ff:ff:ff:ff
    altname enp2s1
    inet 202.(打码)/24 brd 202.194.15.255 scope global ens33
       valid_lft forever preferred_lft forever
    inet6 2001:(打码)/64 scope global dynamic mngtmpaddr 
       valid_lft 2591603sec preferred_lft 604403sec
    inet6 fe80::20c:29ff:feff:e247/64 scope link 
       valid_lft forever preferred_lft forever

建议

移除原始环境中不必要的软件包。

好的,稍后我加入对应的报错判断,尝试自动修补

spiritLHLS/pve@7cfc5d9

已尝试修复,但我无法复现你的错误,只能等你测试了

感谢快速的回复!

这次的报错是:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-s9F9Nn/313-pve-firmware_3.9-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
proxmox-ve is already the newest version (8.1.0).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
proxmox-ve tried to install but failed, exited the program
proxmox-ve 已尝试安装但失败,退出程序

不知道为什么dpkg似乎运行出错了。

建议 1) 在安装前就apt list看一下,有的话就提前移除这个包 2) 增加一个具体的报错输出,方便我这边进一步反馈给你。

感谢!

这里的问题实际已解决,没有报错firmware-ath9k-htc需要移除了(到这个报错的时候已经被移除了),只是没有修复环境,现在我又修了一下,你测测看看

感谢回复!

Errors were encountered while processing:
 /tmp/apt-dpkg-install-CcoeuT/313-pve-firmware_3.9-1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
proxmox-ve tried to install
proxmox-ve 已尝试安装
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 exim4-config : Conflicts: postfix but 3.7.6-0+deb12u2 is to be installed
 exim4-daemon-light : Conflicts: mail-transport-agent
 postfix : Conflicts: mail-transport-agent
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
postfix tried to install
postfix 已尝试安装
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 open-iscsi : Depends: libisns0 but it is not going to be installed
              Depends: libopeniscsiusr (>= 2.1.8) but it is not going to be installed
              Recommends: finalrd (>= 3) but it is not installable
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
open-iscsi tried to install
open-iscsi 已尝试安装
auto vmbr0
iface vmbr0 inet static
    address 202.(打码)/24
    gateway 202.(打码)
    bridge_ports ens33
    bridge_stp off
    bridge_fd 0

iface vmbr0 inet6 static
    address 2001:(打码):20c:29ff:feff:e247/128
    gateway fe80::5298:b8ff:fed2:3001
cp: cannot stat '/etc/apt/sources.list.d/pve-enterprise.list': No such file or directory
DNS server 8.8.8.8 already exists in /etc/resolv.conf.
/usr/local/bin/check-dns.sh: line 23: resolvconf: command not found
Hit:1 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm InRelease
Hit:2 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates InRelease
Hit:3 https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-backports InRelease
Hit:4 https://mirrors.tuna.tsinghua.edu.cn/debian-security bookworm-security InRelease
Hit:5 https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian/pve bookworm InRelease
Reading package lists... Done
N: Repository 'Debian bookworm' changed its 'non-free component' value from 'non-free' to 'non-free non-free-firmware'
N: More information about this can be found online in the Release notes at: https://www.debian.org/releases/bookworm/amd64/release-notes/ch-information.html#non-free-split
sudo already installed
sudo 已经安装
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
iproute2 is already the newest version (6.1.0-3).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
iproute2 tried to install
iproute2 已尝试安装
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ifupdown2 is already the newest version (3.2.0-1+pmx7).
ifupdown2 set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ifupdown2 tried to install
ifupdown2 已尝试安装
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 novnc : Depends: nodejs but it is not going to be installed
         Depends: python3-novnc but it is not going to be installed
         Depends: python3-numpy but it is not going to be installed
         Depends: websockify but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
novnc tried to install
novnc 已尝试安装
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cloud-init : Depends: eject but it is not going to be installed
              Depends: python3-configobj but it is not going to be installed
              Depends: python3-jinja2 but it is not going to be installed
              Depends: python3-jsonpatch but it is not going to be installed
              Depends: python3-jsonschema but it is not going to be installed
              Depends: python3-netifaces but it is not going to be installed
              Depends: python3-oauthlib but it is not going to be installed
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reboot the system
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看
root@debian12:~/pve/scripts# 
              Depends: python3-oauthlib but it is not going to be installed
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reboot the system
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看
root@debian12:~/pve/scripts# 
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reboot the system
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看
root@debian12:~/pve/scripts# 
              Depends: python3-oauthlib but it is not going to be installed
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reb
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看
root@debian12:~/pve/scripts# 
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reboot the system
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看
root@debian12:~/pve/scripts# 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 cloud-init : Depends: eject but it is not going to be installed
              Depends: python3-configobj but it is not going to be installed
              Depends: python3-jinja2 but it is not going to be installed
              Depends: python3-jsonpatch but it is not going to be installed
              Depends: python3-jsonschema but it is not going to be installed
              Depends: python3-netifaces but it is not going to be installed
              Depends: python3-oauthlib but it is not going to be installed
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reb
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看
root@debian12:~/pve/scripts# 
              Depends: python3-netifaces but it is not going to be installed
              Depends: python3-oauthlib but it is not going to be installed
              Depends: python3-serial but it is not going to be installed
              Recommends: cloud-guest-utils but it is not going to be installed
              Recommends: eatmydata but it is not going to be installed
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
cloud-init tried to install
cloud-init 已尝试安装
touch: cannot touch '/etc/cloud/cloud-init.disabled': No such file or directory
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 proxmox-kernel-6.5 : Depends: pve-firmware but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
ufw tried to install
ufw 已尝试安装
./install_pve.sh: line 1507: ufw: command not found
Running kernel: pve-manager/8.1.3/b46aac3b42da5d15 (running kernel: 6.1.0-16-amd64)
Installation complete, please open HTTPS web page https://202.(打码):8006/
The username and password are the username and password used by the server (e.g. root and root user's password)
If the login is correct please do not rush to reboot the system, go to execute the commands of the pre-configured environment and then reboot the system
If there is a problem logging in the web side is not up, wait 10 seconds and restart the system to see
安装完毕,请打开HTTPS网页 https://202.(打码):8006/
用户名、密码就是服务器所使用的用户名、密码(如root和root用户的密码)
如果登录无误请不要急着重启系统,去执行预配置环境的命令后再重启系统
如果登录有问题web端没起来,等待10秒后重启系统看看

现在出现了这种,没有安装成功,但脚本却继续向后执行的问题。

麻烦联系一下 https://t.me/spiritlhl_bot 我需要一些实时的回复

已解决