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.
please add -proxy option support for the upgrade-kernel app
Moderator: fredx181
-
- Posts: 76
- Joined: Thu Sep 24, 2020 3:53 am
- Has thanked: 10 times
- Been thanked: 9 times
- fredx181
- Posts: 3089
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 376 times
- Been thanked: 1316 times
- Contact:
Re: please add -proxy option support for the upgrade-kernel app
helloworld wrote: Wed Oct 06, 2021 10:28 amThe 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....
-
- Posts: 76
- Joined: Thu Sep 24, 2020 3:53 am
- Has thanked: 10 times
- Been thanked: 9 times
Re: please add -proxy option support for the upgrade-kernel app
fredx181 wrote: Thu Oct 07, 2021 5:46 pmhelloworld wrote: Wed Oct 06, 2021 10:28 amThe 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.