Page 1 of 1
please add -proxy option support for the upgrade-kernel app
Posted: Wed Oct 06, 2021 10:28 am
by helloworld
The repository of ubuntu/debiandogs on git can only be accessed through a proxy here ,so, when upgrading kernel , i have to edit the upgrade-kernel and add '-o Acquire::http::proxy=http://127.0.0.1:anyport/' behind the apt command(if i update the upgrade-kernel, i have to edit it again).And,the way of `export http_proxy=http://127.0.0.1:anyport/` doesn't work with apt.IF a -proxy option is added to the upgrade-kernel, and just run it like `sudo upgrade-kernel -proxy 127.0.0.1:anyport `, then no need to edit it.
Re: please add -proxy option support for the upgrade-kernel app
Posted: Thu Oct 07, 2021 5:46 pm
by fredx181
helloworld wrote: ↑Wed Oct 06, 2021 10:28 am
The repository of ubuntu/debiandogs on git can only be accessed through a proxy here ,so, when upgrading kernel , i have to edit the upgrade-kernel and add '-o Acquire::http::proxy=http://127.0.0.1:anyport/' behind the apt command(if i update the upgrade-kernel, i have to edit it again).And,the way of `export http_proxy=http://127.0.0.1:anyport/` doesn't work with apt.IF a -proxy option is added to the upgrade-kernel, and just run it like `sudo upgrade-kernel -proxy 127.0.0.1:anyport `, then no need to edit it.
Hi, which system you are talking about ? (Buster, Bullseye ?, or...)
In the upgrade-kernel script, the kernel is installed from the Debian repository, not from github custom repo, so I don't understand.
But maybe I'm missing something, which "apt" command is it that you need to edit with the proxy option ?
Btw, does it work perhaps if you add "Acquire::http::proxy=http://127.0.0.1:anyport/" to /etc/apt/apt.conf ?
EDIT: Thinking about this further, the install process is done in a chroot, it could be that's the reason you need to use proxy, but just guessing....
Re: please add -proxy option support for the upgrade-kernel app
Posted: Sun Oct 10, 2021 4:53 am
by helloworld
fredx181 wrote: ↑Thu Oct 07, 2021 5:46 pm
helloworld wrote: ↑Wed Oct 06, 2021 10:28 am
The repository of ubuntu/debiandogs on git can only be accessed through a proxy here ,so, when upgrading kernel , i have to edit the upgrade-kernel and add '-o Acquire::http::proxy=http://127.0.0.1:anyport/' behind the apt command(if i update the upgrade-kernel, i have to edit it again).And,the way of `export http_proxy=http://127.0.0.1:anyport/` doesn't work with apt.IF a -proxy option is added to the upgrade-kernel, and just run it like `sudo upgrade-kernel -proxy 127.0.0.1:anyport `, then no need to edit it.
Hi, which system you are talking about ? (Buster, Bullseye ?, or...)
In the upgrade-kernel script, the kernel is installed from the Debian repository, not from github custom repo, so I don't understand.
But maybe I'm missing something, which "apt" command is it that you need to edit with the proxy option ?
Btw, does it work perhaps if you add "Acquire::http::proxy=http://127.0.0.1:anyport/" to /etc/apt/apt.conf ?
EDIT: Thinking about this further, the install process is done in a chroot, it could be that's the reason you need to use proxy, but just guessing....
Put the proxy in th apt .conf doesnt work.Because of network censorship ,the git repo can not be accessed here directly,none of debiandogs'business. Well,if the release of new upgrade-kernel is not frequent,editing it is not that bad.But you can give it a thinking to add a proxy option,whatever ,you decide it.