zepgram / magento2-fast-vm

Optimal vagrant developer box for Magento2. Folders synced by nfs/rsync. This box includes Magento developer utilities.
MIT License
110 stars 35 forks source link

cannot update packages #33

Closed kennylawrence closed 4 years ago

kennylawrence commented 5 years ago

Hi - it seems that perhaps an apt-get update is needed somewhere..? The following is the output from bringing up the VM:

c:\Users\Kenny\Documents\GitHub\magento2-fast-vm>vagrant up Checking dependencies...

apt-get install -y linux-headers-uname -r dkms

Stdout from the command:

Reading package lists... Building dependency tree... Reading state information...

Stderr from the command:

E: Unable to locate package linux-headers-4.9.0-9-amd64 E: Couldn't find any package by glob 'linux-headers-4.9.0-9-amd64' E: Couldn't find any package by regex 'linux-headers-4.9.0-9-amd64'

c:\Users\Kenny\Documents\GitHub\magento2-fast-vm>

zepgram commented 5 years ago

Hi your issue start on very beginning of the installation. It looks like required Debian package have been removed : https://packages.debian.org/stretch/linux-headers-4.9.0-9-common I'll try on my side to confirm.

zepgram commented 5 years ago

At this point we must try Debian buster, stretch image is not supported anymore, maybe they'll do something about it. If you want to try, just go on Vagrant file and replace https://github.com/zepgram/magento2-fast-vm/blob/c9c77fa4b06cdae2c25032db4131ccbe16f5ce84/Vagrantfile#L40 By "debian/buster64"

I didn't try it. I can't guarantee it will work. I just launched a setup from home but I must go to work ^^

kennylawrence commented 5 years ago

Hi - looks like similar result:

c:\Users\Kenny\Documents\GitHub\magento2-fast-vm>vagrant up Checking dependencies...

apt-get install -y linux-headers-uname -r dkms

Stdout from the command:

Reading package lists... Building dependency tree... Reading state information...

Stderr from the command:

E: Unable to locate package linux-headers-4.19.0-5-amd64 E: Couldn't find any package by glob 'linux-headers-4.19.0-5-amd64' E: Couldn't find any package by regex 'linux-headers-4.19.0-5-amd64'

c:\Users\Kenny\Documents\GitHub\magento2-fast-vm>

kennylawrence commented 5 years ago

Is it not possible to have a apt-get update somewhere? there is a message "Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"

zepgram commented 5 years ago

Even if installation failed you can run vagrant SSH and try this command, but there is nothing we can do to fix it properly because it's related to VirtualBox. My first interpretation was wrong. The required package missing is required by guest addition (which is related to virtual box). So it's an issue with guest addition, and you have the latest version so they didn't fixed it. I don't know what we can do to fix it right now.

zepgram commented 5 years ago

vagrant-vbguest plugin is responsible of this error, issue has been reported on their repo: https://github.com/dotless-de/vagrant-vbguest/issues/351

niro08 commented 4 years ago

Hi guys, I get a similar error -

Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7,086 kB]
Fetched 14.7 MB in 4s (3,172 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package linux-headers-4.9.0-9-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-9-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-9-amd64'
==> mag2.loc: Checking for guest additions in VM...
    mag2.loc: No guest additions were detected on the base box for this VM! Guest
    mag2.loc: additions are required for forwarded ports, shared folders, host only
    mag2.loc: networking, and more. If SSH fails on this machine, please install
    mag2.loc: the guest additions and repackage the box to continue.
    mag2.loc:
    mag2.loc: This is not an error message; everything may continue to work properly,
    mag2.loc: in which case you may ignore this message.
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...

Stderr from the command:

E: Unable to locate package linux-headers-4.9.0-9-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-9-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-9-amd64'
zepgram commented 4 years ago

Can you try with this box: geerlingguy/debian9 ? The latest guest additions are already installed. If it's not working I'll migrate the current vagrant from Debian to Ubuntu and this will definitely solve the current issue.

niro08 commented 4 years ago

@zepgram, Thanks for the quick response. I added geerlingguy/debian9 vm box and executed command: vagrant destroy

After that vagrant up command was executed without errors and magento 2 on virtual machine was successfully installed. Thank You very much!