please add -proxy option support for the upgrade-kernel app

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
helloworld
Posts: 76
Joined: Thu Sep 24, 2020 3:53 am
Has thanked: 10 times
Been thanked: 9 times

please add -proxy option support for the upgrade-kernel app

Post 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.

User avatar
fredx181
Posts: 3075
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 374 times
Been thanked: 1311 times
Contact:

Re: please add -proxy option support for the upgrade-kernel app

Post 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....

helloworld
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

Post 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.

Post Reply

Return to “DebianDogs”