Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
XinzeZhang opened this issue Aug 15, 2023 · 0 comments
Open

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

XinzeZhang opened this issue Aug 15, 2023 · 0 comments

Comments

@XinzeZhang
Copy link

XinzeZhang commented Aug 15, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant