Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error when while resolving dependences on vagrant up #23

Open
pablogiralt opened this issue Jun 6, 2019 · 13 comments
Open

404 Error when while resolving dependences on vagrant up #23

pablogiralt opened this issue Jun 6, 2019 · 13 comments

Comments

@pablogiralt
Copy link

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 dkms

Stdout 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 5 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.161 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.161 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.161 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.161 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.161 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.161 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@selfagency
Copy link

Having the same issue

@ghost
Copy link

ghost commented Jun 26, 2019

Same. Did anyone happen to get this resolved?

@rydaly
Copy link

rydaly commented Jun 26, 2019

Plus another. Anyone know dafuq is going on here?

@selfagency
Copy link

@whatnickcodes told me "We are due for an upgrade. Hopefully soon," a couple of weeks ago.

@mindshaped
Copy link

mindshaped commented Jul 9, 2019

I also got stuck on this today but was able to get it solved with the following

  • clone scotchbox pro
  • do a vagrant up (it will throw the error..)
  • then vagrant ssh into the box and in there run the following command:

sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

(in between this and the next step I might've also done sudo apt-get update once..)

After that, all the missing packages should've been updated and another vagrant up starts the machine just fine and I'm able to see the scotchbox index page after that on http://192.168.33.10

also check the accepted answer over here to see what the above sed-command does exactly:) https://stackoverflow.com/questions/48324701/google-compute-engine-ubuntu-17-04-zesty-does-no-longer-have-a-release-file

EDIT: the only drawback I could find until now is, that the optional NFS feature is not working with the above.. maybe there's another package to be updated for that, guess I'll just keep from using NFS for now.

@mitchiru
Copy link

mitchiru commented Aug 1, 2019

+1

@bobgilmour
Copy link

I encountered this issue today while setting up a new dev box and the suggested fix above didn't work for me.

I rolled Virtual Box back to well before the first reported instance of the issue (to about 5.6 from January 2018) and that put things right. I don't update VirtualBox very often but did bring it up into V6 numbers today before bringing up another Vagrant box. So, after a short while of head scratching, I pointed the finger at VB. I have found before that updating VB sometimes creates havoc with installed machines or with new machine installs that aren't configured for new features.

Oh, and NFS obviously works fine.

Hope that helps anyone who hasn't been able to resolve this ... assuming it's not just my own personal case scenario.

@maxfenton
Copy link

Eager for an update and grateful to @mindshaped for the workaround!

@ianrobertdouglas
Copy link

@whatnickcodes Is there any update? I'm getting all these errors, too. VB 6.0.12. Should I roll back? I don't want lose NFS; it's about the only thing that makes Vagrant+Virtualbox tolerable at all.

@ianrobertdouglas
Copy link

Looked into downgrading VB. Difficult on Mojave. And with Catalina ahead, I reinstalled VB 6.0.12

Correct me if I'm wrong, but Scotchbox Pro needs to be updated.

This is what I see on vagrant up:

==> default: Machine booted and ready!
[default] GuestAdditions versions on your host (6.0.12) 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 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.149 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.149 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.149 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.149 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.149 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.149 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
Err:3 http://security.ubuntu.com/ubuntu artful-security Release
  404  Not Found [IP: 91.189.88.174 80]
Ign:4 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful InRelease
Ign:5 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 InRelease
Ign:6 http://archive.ubuntu.com/ubuntu artful-updates InRelease
Get:7 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release [3,462 B]
Hit:8 http://ppa.launchpad.net/ondrej/apache2/ubuntu artful InRelease
Ign:9 http://archive.ubuntu.com/ubuntu artful-backports InRelease
Get:10 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
Err:10 https://dl.yarnpkg.com/debian stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 23E7166788B63E1E
Get:11 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 Release.gpg [801 B]
Hit:12 http://ppa.launchpad.net/ondrej/php/ubuntu artful InRelease
Err:11 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 <[email protected]>
Err:13 http://archive.ubuntu.com/ubuntu artful Release
  404  Not Found [IP: 91.189.88.31 80]
Err:14 http://archive.ubuntu.com/ubuntu artful-updates Release
  404  Not Found [IP: 91.189.88.31 80]
Err:15 http://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful Release
  404  Not Found
Err:16 http://archive.ubuntu.com/ubuntu artful-backports Release
  404  Not Found [IP: 91.189.88.31 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 <[email protected]>
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://ppa.launchpad.net/longsleep/golang-backports/ubuntu artful Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu artful-backports Release' no longer has 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.24 80]
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.24 80]
Err:1 http://archive.ubuntu.com/ubuntu artful-updates/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24
  404  Not Found [IP: 91.189.88.24 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.24 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.24 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.24 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.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> default: Checking for guest additions in VM...
    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.
    default:
    default: Guest Additions Version: 5.2.6
    default: VirtualBox Version: 6.0
==> default: [vagrant-hostsupdater] Checking for host entries
==> default: [vagrant-hostsupdater]   found entry for: 192.168.33.41 dump.test
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` dkms

Stdout 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.24 80]
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.24 80]
Err:1 http://archive.ubuntu.com/ubuntu artful-updates/main i386 linux-headers-4.13.0-21 all 4.13.0-21.24
  404  Not Found [IP: 91.189.88.24 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.24 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.24 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.24 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.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@websafe
Copy link

websafe commented Nov 23, 2019

+1

1 similar comment
@pdhayes
Copy link

pdhayes commented Mar 8, 2020

+1

@reddingwebpro
Copy link

I have supported Nick and Scotchbox for several years, its sad to see this project appears abandoned. I cloned the project and remade the box from scatch with this as a starting point - it's call cognac and can be found at https://github.com/reddingwebpro/cognacbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests