質問編集履歴
3
タイトルを追記しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Windowsにcomposerをインストール
|
1
|
+
Windows10にcomposerをインストールしようとするとerrorが出てしまう。
|
test
CHANGED
File without changes
|
2
新たに試したことを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,9 +76,203 @@
|
|
76
76
|
|
77
77
|
### 試したこと
|
78
78
|
|
79
|
-
|
79
|
+
●VSコードのターミナルでsudo apt install composerを実行。以下のエラーが出てこれも駄目でした。
|
80
|
+
|
81
|
+
|
82
|
+
|
80
|
-
|
83
|
+
Reading package lists... Done
|
84
|
+
|
81
|
-
|
85
|
+
Building dependency tree
|
86
|
+
|
87
|
+
Reading state information... Done
|
88
|
+
|
89
|
+
The following additional packages will be installed:
|
90
|
+
|
91
|
+
jsonlint libonig5 php-cli php-common php-composer-ca-bundle php-composer-semver
|
92
|
+
|
93
|
+
php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-mbstring
|
94
|
+
|
95
|
+
php-psr-container php-psr-log php-symfony-console php-symfony-filesystem php-symfony-finder
|
96
|
+
|
97
|
+
php-symfony-process php-symfony-service-contracts php7.4-cli php7.4-common php7.4-json
|
98
|
+
|
99
|
+
php7.4-mbstring php7.4-opcache php7.4-readline unzip
|
100
|
+
|
101
|
+
Suggested packages:
|
102
|
+
|
103
|
+
fossil mercurial subversion php-zip php-symfony-event-dispatcher php-symfony-lock
|
104
|
+
|
105
|
+
php-symfony-service-implementation php-pear zip
|
106
|
+
|
107
|
+
The following NEW packages will be installed:
|
108
|
+
|
109
|
+
composer jsonlint libonig5 php-cli php-common php-composer-ca-bundle php-composer-semver
|
110
|
+
|
111
|
+
php-composer-spdx-licenses php-composer-xdebug-handler php-json-schema php-mbstring
|
112
|
+
|
113
|
+
php-psr-container php-psr-log php-symfony-console php-symfony-filesystem php-symfony-finder
|
114
|
+
|
115
|
+
php-symfony-process php-symfony-service-contracts php7.4-cli php7.4-common php7.4-json
|
116
|
+
|
117
|
+
php7.4-mbstring php7.4-opcache php7.4-readline unzip
|
118
|
+
|
119
|
+
0 upgraded, 25 newly installed, 0 to remove and 90 not upgraded.
|
120
|
+
|
121
|
+
Need to get 3937 kB of archives.
|
122
|
+
|
123
|
+
After this operation, 19.0 MB of additional disk space will be used.
|
124
|
+
|
125
|
+
Do you want to continue? [Y/n] Y
|
126
|
+
|
127
|
+
Err:1 http://archive.ubuntu.com/ubuntu focal/main amd64 php-common all 2:75
|
128
|
+
|
129
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
130
|
+
|
131
|
+
Ign:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-common amd64 7.4.3-4ubuntu2.7
|
132
|
+
|
133
|
+
Ign:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-json amd64 7.4.3-4ubuntu2.7
|
134
|
+
|
135
|
+
Ign:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-opcache amd64 7.4.3-4ubuntu2.7
|
136
|
+
|
137
|
+
Ign:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-readline amd64 7.4.3-4ubuntu2.7
|
138
|
+
|
139
|
+
Ign:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-cli amd64 7.4.3-4ubuntu2.7
|
140
|
+
|
141
|
+
Err:7 http://archive.ubuntu.com/ubuntu focal/main amd64 php-cli all 2:7.4+75
|
142
|
+
|
143
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
144
|
+
|
145
|
+
Err:8 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-ca-bundle all 1.2.6-1
|
146
|
+
|
147
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
148
|
+
|
149
|
+
Err:9 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-semver all 1.5.1-1
|
150
|
+
|
151
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
152
|
+
|
153
|
+
Err:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-spdx-licenses all 1.5.3-1
|
154
|
+
|
155
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
156
|
+
|
157
|
+
Err:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-log all 1.1.2-1
|
158
|
+
|
159
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
160
|
+
|
161
|
+
Err:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-composer-xdebug-handler all 1.4.0-1
|
162
|
+
|
163
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
164
|
+
|
165
|
+
Err:2 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-common amd64 7.4.3-4ubuntu2.7
|
166
|
+
|
167
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
168
|
+
|
169
|
+
Err:13 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-json-schema all 5.2.9-1
|
170
|
+
|
171
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
172
|
+
|
173
|
+
Err:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 jsonlint all 1.7.2-1
|
174
|
+
|
175
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
176
|
+
|
177
|
+
Err:3 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-json amd64 7.4.3-4ubuntu2.7
|
178
|
+
|
179
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
180
|
+
|
181
|
+
Err:15 http://archive.ubuntu.com/ubuntu focal/universe amd64 libonig5 amd64 6.9.4-1
|
182
|
+
|
183
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
184
|
+
|
185
|
+
Err:4 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-opcache amd64 7.4.3-4ubuntu2.7
|
186
|
+
|
187
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
188
|
+
|
189
|
+
Err:5 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-readline amd64 7.4.3-4ubuntu2.7
|
190
|
+
|
191
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
192
|
+
|
193
|
+
Err:6 http://security.ubuntu.com/ubuntu focal-updates/main amd64 php7.4-cli amd64 7.4.3-4ubuntu2.7
|
194
|
+
|
195
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
196
|
+
|
197
|
+
Ign:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.7
|
198
|
+
|
199
|
+
Err:17 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-mbstring all 2:7.4+75
|
200
|
+
|
201
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
202
|
+
|
203
|
+
Err:16 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 php7.4-mbstring amd64 7.4.3-4ubuntu2.7
|
204
|
+
|
205
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
206
|
+
|
207
|
+
Err:18 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-psr-container all 1.0.0-2
|
208
|
+
|
209
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
210
|
+
|
211
|
+
Err:19 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-service-contracts all 1.1.8-1
|
212
|
+
|
213
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
214
|
+
|
215
|
+
Err:20 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-console all 4.3.8+dfsg-1ubuntu1
|
216
|
+
|
217
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
218
|
+
|
219
|
+
Err:21 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-filesystem all 4.3.8+dfsg-1ubuntu1
|
220
|
+
|
221
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
222
|
+
|
223
|
+
Err:22 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-finder all 4.3.8+dfsg-1ubuntu1
|
224
|
+
|
225
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
226
|
+
|
227
|
+
Err:23 http://archive.ubuntu.com/ubuntu focal/universe amd64 php-symfony-process all 4.3.8+dfsg-1ubuntu1
|
228
|
+
|
229
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
230
|
+
|
231
|
+
Err:24 http://archive.ubuntu.com/ubuntu focal/universe amd64 composer all 1.10.1-1
|
232
|
+
|
233
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
234
|
+
|
235
|
+
Err:25 http://archive.ubuntu.com/ubuntu focal/main amd64 unzip amd64 6.0-25ubuntu1
|
236
|
+
|
237
|
+
Temporary failure resolving 'archive.ubuntu.com'
|
238
|
+
|
239
|
+
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'
|
240
|
+
|
241
|
+
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'
|
242
|
+
|
243
|
+
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'
|
244
|
+
|
245
|
+
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'
|
246
|
+
|
247
|
+
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'
|
248
|
+
|
249
|
+
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'
|
250
|
+
|
251
|
+
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'
|
252
|
+
|
253
|
+
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'
|
254
|
+
|
255
|
+
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'
|
256
|
+
|
257
|
+
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'
|
258
|
+
|
259
|
+
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'
|
260
|
+
|
261
|
+
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'
|
262
|
+
|
263
|
+
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'
|
264
|
+
|
265
|
+
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'
|
266
|
+
|
267
|
+
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'
|
268
|
+
|
269
|
+
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'
|
270
|
+
|
271
|
+
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'
|
272
|
+
|
273
|
+
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'
|
274
|
+
|
275
|
+
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'
|
82
276
|
|
83
277
|
|
84
278
|
|
1
発生している問題の流れを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,30 @@
|
|
15
15
|
|
16
16
|
|
17
17
|
```
|
18
|
+
|
19
|
+
初めに、インストーラーを起動
|
20
|
+
|
21
|
+
↓
|
22
|
+
|
23
|
+
自分だけにインストールを選択
|
24
|
+
|
25
|
+
↓
|
26
|
+
|
27
|
+
Installation Optionsに行ってNextをクリック
|
28
|
+
|
29
|
+
↓
|
30
|
+
|
31
|
+
Select Destination Locationでphp.exeに繋がるpathを選択しNext
|
32
|
+
|
33
|
+
↓
|
34
|
+
|
35
|
+
Setting Checkでパス「C¥php-7.3.2¥php-7.3.21-nts-win32-VC35-X64¥php.exe」を選択しNextを押す.
|
36
|
+
|
37
|
+
↓
|
38
|
+
|
39
|
+
System Configurataion Errorで以下が出て先に進めません。
|
40
|
+
|
41
|
+
|
18
42
|
|
19
43
|
The command interpreter did not run correctly:
|
20
44
|
|