前提・実現したいこと
Composerのインストーラーをダウンロードしてやっていくのですが、途中必ずエラーが出て、その後に行くことが出来ません。
どうもレジストリの設定に問題があるとメッセージが出ているのですが、何分詳しくなくどうしたら良いのか途方に暮れています。
詳しい方、居られましたら対応方法をご教示頂けますと有難いです。よろしくお願いします。
発生している問題・エラーメッセージ
初めに、インストーラーを起動 ↓ 自分だけにインストールを選択 ↓ Installation Optionsに行ってNextをクリック ↓ Select Destination Locationでphp.exeに繋がるpathを選択しNext ↓ Setting Checkでパス「C¥php-7.3.2¥php-7.3.21-nts-win32-VC35-X64¥php.exe」を選択しNextを押す. ↓ System Configurataion Errorで以下が出て先に進めません。 The command interpreter did not run correctly: C:\WINDOWS\system32\cmd.exe It returned the wrong exit code [exit code 1] GetLastError: ファンクションが間違っています。. A setting in your registry could be causing the problem. Check this value and remove it if necessary: HKCU\Software\Microsoft\Command Processor\AutoRun = if exist
該当のソースコード
ソースコード
試したこと
●VSコードのターミナルでsudo apt install composerを実行。以下のエラーが出てこれも駄目でした。
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
jsonlint libonig5 php-cli php-common php-composer-ca-bundle php-composer-semver
php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-mbstring
php-psr-container php-psr-log php-symfony-console php-symfony-filesystem php-symfony-finder
php-symfony-process php-symfony-service-contracts php7.4-cli php7.4-common php7.4-json
php7.4-mbstring php7.4-opcache php7.4-readline unzip
Suggested packages:
fossil mercurial subversion php-zip php-symfony-event-dispatcher php-symfony-lock
php-symfony-service-implementation php-pear zip
The following NEW packages will be installed:
composer jsonlint libonig5 php-cli php-common php-composer-ca-bundle php-composer-semver
php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-mbstring
php-psr-container php-psr-log php-symfony-console php-symfony-filesystem php-symfony-finder
php-symfony-process php-symfony-service-contracts php7.4-cli php7.4-common php7.4-json
php7.4-mbstring php7.4-opcache php7.4-readline unzip
0 upgraded, 25 newly installed, 0 to remove and 90 not upgraded.
Need to get 3937 kB of archives.
After this operation, 19.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://archive.ubuntu.com/ubuntu focal/main amd64 php-common all 2:75
Temporary failure resolving 'archive.ubuntu.com'
Ign:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-common amd64 7.4.3-4ubuntu2.7
Ign:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-json amd64 7.4.3-4ubuntu2.7
Ign:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-opcache amd64 7.4.3-4ubuntu2.7
Ign:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-readline amd64 7.4.3-4ubuntu2.7
Ign:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-cli amd64 7.4.3-4ubuntu2.7
Err:7 http://archive.ubuntu.com/ubuntu focal/main amd64 php-cli all 2:7.4+75
Temporary failure resolving 'archive.ubuntu.com'
Err:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-ca-bundle all 1.2.6-1
Temporary failure resolving 'archive.ubuntu.com'
Err:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-semver all 1.5.1-1
Temporary failure resolving 'archive.ubuntu.com'
Err:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-spdx-licenses all 1.5.3-1
Temporary failure resolving 'archive.ubuntu.com'
Err:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-log all 1.1.2-1
Temporary failure resolving 'archive.ubuntu.com'
Err:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-xdebug-handler all 1.4.0-1
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-common amd64 7.4.3-4ubuntu2.7
Temporary failure resolving 'archive.ubuntu.com'
Err:13 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-json-schema all 5.2.9-1
Temporary failure resolving 'archive.ubuntu.com'
Err:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 jsonlint all 1.7.2-1
Temporary failure resolving 'archive.ubuntu.com'
Err:3 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-json amd64 7.4.3-4ubuntu2.7
Temporary failure resolving 'archive.ubuntu.com'
Err:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 libonig5 amd64 6.9.4-1
Temporary failure resolving 'archive.ubuntu.com'
Err:4 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-opcache amd64 7.4.3-4ubuntu2.7
Temporary failure resolving 'archive.ubuntu.com'
Err:5 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-readline amd64 7.4.3-4ubuntu2.7
Temporary failure resolving 'archive.ubuntu.com'
Err:6 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-cli amd64 7.4.3-4ubuntu2.7
Temporary failure resolving 'archive.ubuntu.com'
Ign:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.7
Err:17 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-mbstring all 2:7.4+75
Temporary failure resolving 'archive.ubuntu.com'
Err:16 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.7
Temporary failure resolving 'archive.ubuntu.com'
Err:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-container all 1.0.0-2
Temporary failure resolving 'archive.ubuntu.com'
Err:19 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-service-contracts all 1.1.8-1
Temporary failure resolving 'archive.ubuntu.com'
Err:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-console all 4.3.8+dfsg-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Err:21 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-filesystem all 4.3.8+dfsg-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Err:22 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-finder all 4.3.8+dfsg-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Err:23 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-process all 4.3.8+dfsg-1ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
Err:24 http://archive.ubuntu.com/ubuntu focal/universe amd64 composer all 1.10.1-1
Temporary failure resolving 'archive.ubuntu.com'
Err:25 http://archive.ubuntu.com/ubuntu focal/main amd64 unzip amd64 6.0-25ubuntu1
Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php-defaults/php-common_75_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-common_7.4.3-4ubuntu2.7_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-json_7.4.3-4ubuntu2.7_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-opcache_7.4.3-4ubuntu2.7_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-readline_7.4.3-4ubuntu2.7_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/php7.4/php7.4-cli_7.4.3-4ubuntu2.7_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/p/php-defaults/php-cli_7.4+75_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-composer-ca-bundle/php-composer-ca-bundle_1.2.6-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-composer-semver/php-composer-semver_1.5.1-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-composer-spdx-licenses/php-composer-spdx-licenses_1.5.3-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-psr-log/php-psr-log_1.1.2-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-composer-xdebug-handler/php-composer-xdebug-handler_1.4.0-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-json-schema/php-json-schema_5.2.9-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/j/jsonlint/jsonlint_1.7.2-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libo/libonig/libonig5_6.9.4-1_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/p/php7.4/php7.4-mbstring_7.4.3-4ubuntu2.7_amd64.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-defaults/php-mbstring_7.4+75_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-psr-container/php-psr-container_1.0.0-2_all.deb Temporary failure resolving 'archive.ubuntu.com'
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/p/php-symfony-contracts/php-symfony-service-contracts_1.1.8-1_all.deb Temporary failure resolving 'archive.ubuntu.com'
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー