On Thu, Oct 18, 2012 at 7:05 PM, Patrick Reilly <preilly(a)wikimedia.org>
wrote:
Done and done...
<https://github.com/wikimedia/wmf-vagrant>
Hi,
I am following the instructions, but it does not want to install mysql.
Virtualbox 4.2.4
$ vagrant -v
Vagrant version 1.0.5
$ git clone
https://github.com/atdt/wmf-vagrant.git
(...)
$ cd wmf-vagrant/
$ git submodule update --init
(...)
$ vagrant up
[default] Importing base box 'precise32'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.2.4
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 80 => 8080 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Available bridged network interfaces:
1) en1: Wi-Fi (AirPort)
2) en0: Ethernet
3) vmnet1
4) vmnet8
What interface should the network bridge to? 1
[default] Preparing network interfaces based on configuration...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- vagrant: /srv
[default] -- v-root: /vagrant
[default] -- manifests: /tmp/vagrant-puppet/manifests
[default] -- v-pp-m0: /tmp/vagrant-puppet/modules-0
[default] Running provisioner: Vagrant::Provisioners::Puppet...
[default] Running Puppet with /tmp/vagrant-puppet/manifests/base.pp...
stdin: is not a tty
debug: Failed to load library 'ldap' for feature 'ldap'
(...)
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/dpkg-query
-W --showformat ${Status} ${Package} ${Version}\n mysql-server'
debug: Puppet::Type::Package::ProviderApt: Executing '/usr/bin/apt-get -q
-y -o DPkg::Options::=--force-confold install mysql-server'
err: /Stage[main]/Mysql/Package[mysql-server]/ensure: change from purged to
present failed: Execution of '/usr/bin/apt-get -q -y -o
DPkg::Options::=--force-confold install mysql-server' returned 100: Reading
package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
libnet-daemon-perl libplrpc-perl mysql-client-5.5 mysql-client-core-5.5
mysql-common mysql-server-5.5 mysql-server-core-5.5
Suggested packages:
libipc-sharedcache-perl libterm-readkey-perl tinyca mailx
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libhtml-template-perl libmysqlclient18
libnet-daemon-perl libplrpc-perl mysql-client-5.5 mysql-client-core-5.5
mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
0 upgraded, 12 newly installed, 0 to remove and 66 not upgraded.
Need to get 26.5 MB of archives.
After this operation, 91.9 MB of additional disk space will be used.
Err
http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-common
all 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.91.13 80]
Get:1
http://us.archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl
all 0.48-1 [43.1 kB]
Get:2
http://us.archive.ubuntu.com/ubuntu/ precise/main libplrpc-perl all
0.2020-2 [36.0 kB]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main mysql-common
all 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main
libmysqlclient18 i386 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Get:3
http://us.archive.ubuntu.com/ubuntu/ precise/main libdbi-perl i386
1.616-1build2 [849 kB]
Get:4
http://us.archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl
i386 4.020-1build2 [104 kB]
Err
http://us.archive.ubuntu.com/ubuntu/ precise-updates/main
mysql-client-core-5.5 i386 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.91.13 80]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main
mysql-client-core-5.5 i386 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Get:5
http://us.archive.ubuntu.com/ubuntu/ precise/main
libhtml-template-perl all 2.10-1 [65.0 kB]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main
mysql-client-5.5 i386 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main
mysql-server-core-5.5 i386 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main
mysql-server-5.5 i386 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Err
http://us.archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server
all 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.91.13 80]
Err
http://security.ubuntu.com/ubuntu/ precise-security/main mysql-server
all 5.5.24-0ubuntu0.12.04.1
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-common_5.5.24…
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.…
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-core-5…
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-client-5.5_5.…
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-core-5…
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server-5.5_5.…
404 Not Found [IP: 91.189.92.190 80]
Failed to fetch
http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/mysql-server_5.5.24…
404 Not Found [IP: 91.189.92.190 80]
Fetched 1097 kB in 2s (427 kB/s)
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
notice: /Stage[main]/Mysql/Service[mysql]: Dependency Package[mysql-server]
has failures: true
warning: /Stage[main]/Mysql/Service[mysql]: Skipping because of failed
dependencies
(...)
notice: /Stage[main]/Mediawiki/File[/var/www/srv/mediawiki]: Dependency
Package[mysql-server] has failures: true
warning: /Stage[main]/Mediawiki/File[/var/www/srv/mediawiki]: Skipping
because of failed dependencies
(...)
Not surprisingly, mysql is not installed:
$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation:
https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:22:31 2012 from 10.0.2.2
$ mysql --version
The program 'mysql' is currently not installed. You can install it by
typing:
sudo apt-get install mysql-client-core-5.5
Am I doing something wrong?
Please let me know if I should provide the entire output from terminal, or
if this is not the place for this kind of support.
Željko