Open craiglondon opened 4 years ago
For anyone who comes across this issue looking for a solution, here's an important heads up:
Scotch Box (both Free and Pro) have not received updates in several years and are relying on old versions of Ubuntu that are no longer supported. That's what the above error is about and I've run into similar errors caused by the same issue. Scotch.io has announced that they are closing shop in Jan 2022, so further updates are unlikely.
If you feel like rolling your own version of Scotch Box, there are decent instructions for doing that in the pro docs. They work fairly well if you switch the builder box to bento's 20.04 build, but there are some hangups around mailhog and go. I've gone through these steps recently for an old project.
Assuming there are no license issues (SB Free is MIT, but I don't see any acknowledgement of licensing in the Pro repo) I may post the modifications that I've found helpful on another repo. If I do, I'll come back here and post links. Good luck to anyone who comes back here trying to solve problems they've run into on their box.
$ vagrant init scotch/box-pro A
Vagrantfile
has been placed in this directory. You are now ready tovagrant up
your first virtual environment! Please read the comments in the Vagrantfile as well as documentation onvagrantup.com
for more information on using Vagrant.$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'scotch/box-pro' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'scotch/box-pro' default: URL: https://vagrantcloud.com/scotch/box-pro ==> default: Adding box 'scotch/box-pro' (v1.5) for provider: virtualbox default: Downloading: https://vagrantcloud.com/scotch/boxes/box-pro/versions/1.5/providers/virtualbox.box default: Download redirected to host: vagrantcloud-files-production.s3.amazonaws.com ==> default: Successfully added box 'scotch/box-pro' (v1.5) for 'virtualbox'! ==> default: Importing base box 'scotch/box-pro'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'scotch/box-pro' version '1.5' is up to date... ==> default: Setting the name of the VM: scotchBoxPro_default_1599681806762_57459 ==> default: Fixed port collision for 22 => 2222. Now on port 2201. ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 22 (guest) => 2201 (host) (adapter 1) ==> default: Booting VM... ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2201 default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection reset. Retrying... default: Warning: Remote connection disconnect. Retrying... default: Warning: Connection reset. Retrying... default: default: Vagrant insecure key detected. Vagrant will automatically replace default: this with a newly generated keypair for better security. default: default: Inserting generated public key within guest... default: Removing insecure key from the guest if it's present... default: Key inserted! Disconnecting and reconnecting using new SSH key... ==> default: Machine booted and ready! [default] GuestAdditions versions on your host (5.2.32) and guest (5.2.6) do not match. Reading package lists... Building dependency tree... Reading state information... dkms is already the newest version (2.3-3ubuntu3). The following NEW packages will be installed: linux-headers-4.13.0-21 linux-headers-4.13.0-21-generic 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 11.6 MB of archives. After this operation, 83.1 MB of additional disk space will be used. Ign:1 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 linux-headers-4.13.0-21 all 4.13.0-21.24 Err:2 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 linux-headers-4.13.0-21-generic amd64 4.13.0-21.24 404 Not Found [IP: 91.189.88.142 80] Ign:1 http://archive.ubuntu.com/ubuntu artful-updates/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24 Err:2 http://security.ubuntu.com/ubuntu artful-security/main amd64 linux-headers-4.13.0-21-generic amd64 4.13.0-21.24 404 Not Found [IP: 91.189.88.142 80] Err:1 http://security.ubuntu.com/ubuntu artful-security/main amd64 linux-headers-4.13.0-21 all 4.13.0-21.24 404 Not Found [IP: 91.189.88.142 80] Err:1 http://security.ubuntu.com/ubuntu artful-security/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24 404 Not Found [IP: 91.189.88.142 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.13.0-21_4.13.0-21.24_all.deb 404 Not Found [IP: 91.189.88.142 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.13.0-21-generic_4.13.0-21.24_amd64.deb 404 Not Found [IP: 91.189.88.142 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Ign:1 http://security.ubuntu.com/ubuntu artful-security InRelease Ign:2 http://archive.ubuntu.com/ubuntu artful InRelease Ign:3 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease Get:4 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB] Ign:5 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful InRelease Get:6 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release [3,462 B] Err:7 http://security.ubuntu.com/ubuntu artful-security Release 404 Not Found [IP: 91.189.88.142 80] Ign:8 http://archive.ubuntu.com/ubuntu artful-updates InRelease Get:9 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg [801 B] Err:4 https://dl.yarnpkg.com/debian stable InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E Ign:10 http://archive.ubuntu.com/ubuntu artful-backports InRelease Err:9 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg The following signatures were invalid: EXPKEYSIG D68FA50FEA312927 MongoDB 3.2 Release Signing Key packaging@mongodb.com Err:11 http://archive.ubuntu.com/ubuntu artful Release 404 Not Found [IP: 91.189.88.152 80] Get:12 http://ppa.launchpad.net/ondrej/apache2/ubuntu artful InRelease [20.7 kB] Err:13 http://archive.ubuntu.com/ubuntu artful-updates Release 404 Not Found [IP: 91.189.88.152 80] Err:14 http://archive.ubuntu.com/ubuntu artful-backports Release 404 Not Found [IP: 91.189.88.152 80] Get:15 http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease [20.8 kB] Err:16 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful Release 404 Not Found [IP: 91.189.95.83 80] Reading package lists... W: --force-yes is deprecated, use one of the options starting with --allow instead. E: The repository 'http://security.ubuntu.com/ubuntu artful-security Release' no longer has a Release file. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release: The following signatures were invalid: EXPKEYSIG D68FA50FEA312927 MongoDB 3.2 Release Signing Key packaging@mongodb.com E: The repository 'http://archive.ubuntu.com/ubuntu artful Release' no longer has a Release file. E: The repository 'http://archive.ubuntu.com/ubuntu artful-updates Release' no longer has a Release file. E: The repository 'http://archive.ubuntu.com/ubuntu artful-backports Release' no longer has a Release file. E: The repository 'http://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful Release' does not have a Release file. Reading package lists... Building dependency tree... Reading state information... dkms is already the newest version (2.3-3ubuntu3). The following NEW packages will be installed: linux-headers-4.13.0-21 linux-headers-4.13.0-21-generic 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 11.6 MB of archives. After this operation, 83.1 MB of additional disk space will be used. Ign:1 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 linux-headers-4.13.0-21 all 4.13.0-21.24 Err:2 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 linux-headers-4.13.0-21-generic amd64 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] Ign:1 http://archive.ubuntu.com/ubuntu artful-updates/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24 Err:2 http://security.ubuntu.com/ubuntu artful-security/main amd64 linux-headers-4.13.0-21-generic amd64 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] Err:1 http://security.ubuntu.com/ubuntu artful-security/main amd64 linux-headers-4.13.0-21 all 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] Err:1 http://security.ubuntu.com/ubuntu artful-security/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.13.0-21_4.13.0-21.24_all.deb 404 Not Found [IP: 91.189.88.152 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.13.0-21-generic_4.13.0-21.24_amd64.deb 404 Not Found [IP: 91.189.88.152 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? ==> default: Checking for guest additions in VM... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!
apt-get install -y linux-headers-
uname -r
dkmsStdout from the command:
Reading package lists... Building dependency tree... Reading state information... dkms is already the newest version (2.3-3ubuntu3). The following NEW packages will be installed: linux-headers-4.13.0-21 linux-headers-4.13.0-21-generic 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 11.6 MB of archives. After this operation, 83.1 MB of additional disk space will be used. Ign:1 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 linux-headers-4.13.0-21 all 4.13.0-21.24 Err:2 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 linux-headers-4.13.0-21-generic amd64 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] Ign:1 http://archive.ubuntu.com/ubuntu artful-updates/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24 Err:2 http://security.ubuntu.com/ubuntu artful-security/main amd64 linux-headers-4.13.0-21-generic amd64 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] Err:1 http://security.ubuntu.com/ubuntu artful-security/main amd64 linux-headers-4.13.0-21 all 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80] Err:1 http://security.ubuntu.com/ubuntu artful-security/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24 404 Not Found [IP: 91.189.88.152 80]
Stderr from the command:
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.13.0-21_4.13.0-21.24_all.deb 404 Not Found [IP: 91.189.88.152 80] E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-headers-4.13.0-21-generic_4.13.0-21.24_amd64.deb 404 Not Found [IP: 91.189.88.152 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?