Vonng / pigsty

Battery-Included PostgreSQL Distro as a Free RDS Alternative
https://pigsty.io
GNU Affero General Public License v3.0
3.01k stars 242 forks source link

Got error "No package matching 'nginx' is available" when i try install on the debian11 with window WSL2 #358

Closed hwywhywl closed 6 months ago

hwywhywl commented 6 months ago

Hi @Vonng when i do command

      ./install.yml --ask-become-pass

then get below error output:

PLAY [IDENTITY] ***************************************************************************************************************************************************************************************************
TASK [node_id : get node fact] ************************************************************************************************************************************************************************************
changed: [172.17.250.70]

TASK [node_id : set node fact] ************************************************************************************************************************************************************************************
ok: [172.17.250.70]

TASK [node_id : fill empty nodename with hostname] ****************************************************************************************************************************************************************
skipping: [172.17.250.70]

TASK [node_id : build node identity] ******************************************************************************************************************************************************************************
ok: [172.17.250.70]

TASK [node_id : print node identity] ******************************************************************************************************************************************************************************
ok: [172.17.250.70] => {
    "msg": "nodename: pg-meta-1, node_cluster: pg-meta, spec: c8m8, os: debian.11.x86_64 bullseye:deb, [ADMIN] [INFRA] [PGSQL: pg-meta]  [ETCD: etcd]   "
}
...................
..................
..................
..................
TASK [repo : use built local repo] ********************************************************************************************************************************************************************************
skipping: [172.17.250.70]

TASK [repo : check nginx exists by port] **************************************************************************************************************************************************************************
changed: [172.17.250.70]

TASK [repo : set nginx_exists flag] *******************************************************************************************************************************************************************************
ok: [172.17.250.70]

TASK [repo : make sure nginx installed] ***************************************************************************************************************************************************************************
fatal: [172.17.250.70]: FAILED! => {"changed": false, "msg": "No package matching 'nginx' is available"}

PLAY RECAP ********************************************************************************************************************************************************************************************************
172.17.250.70              : ok=13   changed=3    unreachable=0    failed=1    skipped=10   rescued=0    ignored=0
localhost                  : ok=3    changed=0    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0

pigsty version:

PIGSTY_VERSION=v2.5.1

os version:

PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

local pigsty repo:

[ OK ] $ curl https://get.pigsty.cc/v2.5.1/pigsty-pkg-v2.5.1.ubuntu11.x86_64.tgz -o /tmp/pkg.tgz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   466  100   466    0     0    347      0  0:00:01  0:00:01 --:--:--   347
[ OK ] repo = /www/pigsty ok
[ OK ] repo file = use /etc/apt/sources.list.d/pigsty-local.list

I have checked local pigsty repo and not found the nginx deb:

xxxxxx@WIN11:/www/pigsty$ ls *ngi*
nginx-exporter_0.11.0_amd64.deb
Vonng commented 6 months ago

the hotfix would be install it from upstream repo directly : https://doc.pigsty.cc/#/FAQ?id=installation . This offline package will be repaired in the next release.