kaist-cp/cs431

[Question] zip is not installed on server

jemin-hwang opened this issue · 2 comments

I am currently working on our server.
When I run ./scripts/submit.sh, I get the following error message:

./scripts/submit.sh: line 4: zip: command not found
./scripts/submit.sh: line 5: zip: command not found
./scripts/submit.sh: line 6: zip: command not found
./scripts/submit.sh: line 7: zip: command not found

I remember I got the same error message before, and I resolved it by manually installing zip by sudo apt-get install zip.
But it seems that it does not work for this time:

ubuntu@CS431:~/cs431/homework$ sudo apt-get install zip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  unzip
The following NEW packages will be installed:
  unzip zip
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 350 kB of archives.
After this operation, 933 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://archive.ubuntu.com/ubuntu noble/main amd64 unzip amd64 6.0-28ubuntu4
Ign:2 http://archive.ubuntu.com/ubuntu noble/main amd64 zip amd64 3.0-13build1
Ign:1 http://archive.ubuntu.com/ubuntu noble/main amd64 unzip amd64 6.0-28ubuntu4
Ign:2 http://archive.ubuntu.com/ubuntu noble/main amd64 zip amd64 3.0-13build1
Ign:1 http://archive.ubuntu.com/ubuntu noble/main amd64 unzip amd64 6.0-28ubuntu4
Ign:2 http://archive.ubuntu.com/ubuntu noble/main amd64 zip amd64 3.0-13build1
Err:1 http://archive.ubuntu.com/ubuntu noble/main amd64 unzip amd64 6.0-28ubuntu4
  Could not connect to 10.22.0.2:3142 (10.22.0.2). - connect (111: Connection refused)
Err:2 http://archive.ubuntu.com/ubuntu noble/main amd64 zip amd64 3.0-13build1
  Unable to connect to 10.22.0.2:3142:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/u/unzip/unzip_6.0-28ubuntu4_amd64.deb  Could not connect to 10.22.0.2:3142 (10.22.0.2). - connect (111: Connection refused)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/z/zip/zip_3.0-13build1_amd64.deb  Unable to connect to 10.22.0.2:3142:
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Sorry for the inconvenience. Can you create another workspace and try it again? I guess it will now work.

zip: command not found still occurred for a new workspace, but sudo apt-get install zip worked for this new workspace!
Thanks.