Nick’s scotch/box and scotch/box-pro have been discontinued for over 2 years! Version 3.5 was released with Ubuntu 16.05 and Pro version 1.5 was released with Ubuntu 17 – both are out of support with Ubuntu and running them can be very challenging!
Common errors include:
- Unable to run apt-get update without errors
- Running apt-get upgrade doesn’t upgrade anything
- Unable to run or install modern frameworks like Laravel or Symfony on ScotchBox
- PHP 7.0 is no longer supported
After being frustrated at the workarounds I decided to rebuild the box completely from scratch using Nick’s Scotchbox as a baseline, but my iteration is called Cognac Box.
Installation and use are just as simple to use, but using a much more modern tech stack!
Ubuntu 18.04 LTS, latest PHP, MySQL, Redis, etc. as of March 2020
git clone https://github.com/reddingwebpro/cognacbox.git my-project cd my-project vagrant up
That’s it, you’re all set. Enjoy!
The following is mostly so people looking for solutions can find this page:
The following are common errors when working with ScotchBox and StchBoxPro in 2020:
$ sudo apt-get update 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: KEYEXPIRED 1507497109 W: Failed to fetch https://dl.yarnpkg.com/debian/dists/stable/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E W: Failed to fetch http://repo.mongodb.org/apt/ubuntu/dists/xenial/mongodb-org/3.2/Release.gpg The following signatures were invalid: KEYEXPIRED 1507497109 W: Some index files failed to download. They have been ignored, or old ones used instead.
$ composer create-project symfony/website-skeleton my_project_name Could not delete /var/www/my_project_name/vendor/symfony/flex/src/Command:
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: 220.127.116.11 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: 18.104.22.168 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
$ sudo apt-get update E: The repository 'http://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
If you are having these errors, definatey give CognacBox (the ScotchBox Alternative) a look!