kx-Huang / ChatGPT-on-WeChat

🤖️ Deploy GPT-4o ChatGPT on your WeChat within 2 steps! 两步在云端部署你的微信ChatGPT聊天机器人!🤖️
https://railway.app/template/zKIfYk
ISC License
781 stars 353 forks source link

docker build -t chatgpt-on-wechat . 運行錯誤 #81

Closed edioi closed 3 months ago

edioi commented 5 months ago

大佬好,安裝過程中,到了docker build -t chatgpt-on-wechat . 這一步,出現了錯誤,請問如何解決呢?謝謝大佬

26.19 2024-04-03 02:04:48 - Repository configured successfully. To install Node.js, run: apt-get install nodejs -y 26.21 Reading package lists... 27.39 Building dependency tree... 27.65 Reading state information... 27.78 Some packages could not be installed. This may mean that you have 27.78 requested an impossible situation or if you are using the unstable 27.78 distribution that some required packages have not yet been created 27.78 or been moved out of Incoming. 27.78 The following information may help to resolve the situation: 27.78 27.78 The following packages have unmet dependencies: 28.00 nodejs : Conflicts: npm 28.00 npm : Depends: node-agent-base but it is not going to be installed 28.00 Depends: node-archy but it is not going to be installed 28.00 Depends: node-cacache (>= 17) but it is not going to be installed 28.00 Depends: node-chalk (>= 5.1.2-2~) but it is not going to be installed 28.00 Depends: node-cli-table3 28.00 Depends: node-columnify but it is not going to be installed 28.00 Depends: node-cssesc 28.00 Depends: node-debug but it is not going to be installed 28.00 Depends: node-emoji-regex 28.00 Depends: node-gyp but it is not going to be installed 28.00 Depends: node-http-proxy-agent 28.00 Depends: node-https-proxy-agent but it is not going to be installed 28.00 Depends: node-mkdirp but it is not going to be installed 28.00 Depends: node-ms but it is not going to be installed 28.00 Depends: node-nopt but it is not going to be installed 28.00 Depends: node-normalize-package-data but it is not going to be installed 28.00 Depends: node-npm-bundled but it is not going to be installed 28.00 Depends: node-npm-normalize-package-bin 28.00 Depends: node-npm-package-arg (>= 10) but it is not going to be installed 28.00 Depends: node-npmlog but it is not going to be installed 28.00 Depends: node-postcss-selector-parser 28.00 Depends: node-read-package-json but it is not going to be installed 28.00 Depends: node-rimraf but it is not going to be installed 28.00 Depends: node-semver but it is not going to be installed 28.00 Depends: node-string-width but it is not going to be installed 28.00 Depends: node-strip-ansi but it is not going to be installed 28.00 Depends: node-tar but it is not going to be installed 28.00 Depends: node-validate-npm-package-name but it is not going to be installed 28.00 Depends: node-which but it is not going to be installed 28.00 Depends: nodejs:any 28.00 Recommends: node-tap but it is not going to be installed 28.00 E: Unable to correct problems, you have held broken packages.

Dockerfile:4

3 | ARG POETRY_VERSION=1.2.2 4 | >>> RUN apt-get update && \ 5 | >>> curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ 6 | >>> apt-get install -y nodejs \ 7 | >>> npm && \ 8 | >>> rm -rf /var/cache/apk/ && \ 9 | >>> pip3 install --no-cache-dir poetry && \ 10 | >>> rm -rf ~/.cache/ 11 | COPY package.json ./

ERROR: failed to solve: process "/bin/sh -c apt-get update && curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get install -y nodejs npm && rm -rf /var/cache/apk/* && pip3 install --no-cache-dir poetry && rm -rf ~/.cache/" did not complete successfully: exit code: 100

kx-Huang commented 3 months ago

请参考 https://github.com/kx-Huang/ChatGPT-on-WeChat/issues/3#issuecomment-2117260288