pop-os / upgrade

Utility for upgrading Pop!_OS and its recovery partition to new releases.
GNU General Public License v3.0
95 stars 29 forks source link

pop-upgrade failed to fectch of recovery ISO with proxy #324

Open XinzeZhang opened 1 year ago

XinzeZhang commented 1 year ago

Hi, Thanks the effort of the pop-os teams. There is a http client error when I upgrade my pop_os 20.04 LTS to 22.04 LTS, as show in sudo journalctl -u pop-upgrade -f:

8月 15 17:28:36 b450 pop-upgrade[6983]: Reading package lists...
8月 15 17:28:36 b450 pop-upgrade[6983]: Building dependency tree...
8月 15 17:28:36 b450 pop-upgrade[6983]: Reading state information...
8月 15 17:28:37 b450 pop-upgrade[6983]: The following packages were automatically installed and are no longer required:
8月 15 17:28:37 b450 pop-upgrade[6983]:   libllvm11 libllvm11:i386 libnvidia-cfg1-460 libnvidia-common-460
8月 15 17:28:37 b450 pop-upgrade[6983]:   libnvidia-compute-460 libnvidia-compute-460:i386 libnvidia-decode-460
8月 15 17:28:37 b450 pop-upgrade[6983]:   libnvidia-decode-460:i386 libnvidia-encode-460 libnvidia-encode-460:i386
8月 15 17:28:37 b450 pop-upgrade[6983]:   libnvidia-extra-460 libnvidia-fbc1-460 libnvidia-fbc1-460:i386
8月 15 17:28:37 b450 pop-upgrade[6983]:   libnvidia-gl-460 libnvidia-gl-460:i386 libnvidia-ifr1-460
8月 15 17:28:37 b450 pop-upgrade[6983]:   libnvidia-ifr1-460:i386 nvidia-compute-utils-460 nvidia-dkms-460
8月 15 17:28:37 b450 pop-upgrade[6983]:   nvidia-kernel-common-460 nvidia-kernel-source-460 nvidia-utils-460
8月 15 17:28:37 b450 pop-upgrade[6983]:   python3-distro-info python3-distupgrade python3-update-manager
8月 15 17:28:37 b450 pop-upgrade[6983]:   xserver-xorg-video-nvidia-460
8月 15 17:28:37 b450 pop-upgrade[6983]: Use 'apt autoremove' to remove them.
8月 15 17:28:37 b450 pop-upgrade[6983]: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8月 15 17:28:37 b450 pop-upgrade[2714]: [INFO ] recovery/mod.rs:122: fetching ISO to upgrade recovery partition at /recovery
8月 15 17:28:37 b450 pop-upgrade[2714]: [INFO ] release/check.rs:75: Checking for current release of Some("22.04")
8月 15 17:28:37 b450 pop-upgrade[2714]: [INFO ] release_api.rs:58: checking for build 22.04 in channel intel
8月 15 17:28:37 b450 pop-upgrade[2714]: [DEBUG] daemon/mod.rs:822: Sending DBus Event: RecoveryUpgradeEvent(
8月 15 17:28:37 b450 pop-upgrade[2714]:     Fetching,
8月 15 17:28:37 b450 pop-upgrade[2714]: )
8月 15 17:28:37 b450 pop-upgrade[2714]: [INFO ] daemon/mod.rs:829: recovery upgrade: fetching recovery files
8月 15 17:28:38 b450 pop-upgrade[2714]: [INFO ] release_api.rs:58: checking for build 22.04 in channel nvidia
8月 15 17:28:39 b450 pop-upgrade[2714]: [INFO ] recovery/mod.rs:265: downloading ISO from remote at https://iso.pop-os.org/22.04/amd64/nvidia/33/pop-os_22.04_amd64_nvidia_33.iso to "/var/cache/pop-upgrade/recovery.iso"
8月 15 17:28:39 b450 pop-upgrade[2714]: [INFO ] recovery/mod.rs:278: Initiating fetch of recovery ISO
8月 15 17:31:36 b450 pop-upgrade[2714]: [ERROR] lib.rs:387: retrying after error encountered: http client error
8月 15 17:33:49 b450 pop-upgrade[2714]: [ERROR] lib.rs:387: retrying after error encountered: http client error

The http client error is caused by the network problem in my live area. But I can download the iso file pop-os_22.04_amd64_nvidia_33.iso from the web browser successfully through the proxy settings in system settings--Network--Network proxy. I have tried to copy the file as /var/cache/pop-upgrade/recovery.iso manully, but the source code in recovery/mod.rs will automatically remove the file and try to re-download it wit not respecting to the proxy settings.

I have also tried to conduct the sudo pop-upgrade release upgrade in the terminal and set the correct proxy with http_proxy as well as https_proxy. The proxy is checked by curl cip.cc and sudo apt update with the souces.list as:

deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://apt.pop-os.org/proprietary focal main

However, the pop-upgrade still failed with the same above-mentioned reason. Is there any solution to avoid removing the pre-downloaded recovery.iso, or make the proxy work when conducting pop-upgrade?

Thanks a lot.