I am using the buildpack located at https://github.com/heroku/heroku-buildpack-apt.git to install required packages using the Aptfile. Everything worked fine for a while, but now every package gives an "Unable to locate package" error. This is with the exact same files on the exact same heroku stack. Did the buildpack for using Aptfile deprecate or is there a workaround?
Full build log:
-----> Using buildpacks:
1. https://github.com/heroku/heroku-buildpack-apt.git
2. heroku/python
3. https://github.com/heroku/heroku-buildpack-python.git
4. https://github.com/matt-bertoncello/python-pyodbc-buildpack.git
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Updating apt caches
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt focal-pgdg InRelease [81.6 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt focal-pgdg/main amd64 Packages [311 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:8 http://archive.ubuntu.com/ubuntu focal-security/main amd64 Packages [786 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-security/universe amd64 Packages [699 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,203 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [965 kB]
Fetched 17.2 MB in 2s (7,544 kB/s)
Reading package lists...
-----> Fetching .debs for unixodbc
Reading package lists...
Building dependency tree...
E: Unable to locate package unixodbc
! Push rejected, failed to compile Apt app.
! Push failed```
Related
I am getting the following errors when i am trying to installing Codelite following documentations. How to solve this issues?
Get:1 http://packages.microsoft.com/repos/code stable InRelease [10.4 kB]
Err:2 http://bd.old-releases.ubuntu.com/ubuntu focal InRelease
Could not resolve 'bd.old-releases.ubuntu.com'
Err:3 http://bd.old-releases.ubuntu.com/ubuntu focal-updates InRelease
Could not resolve 'bd.old-releases.ubuntu.com'
Err:4 http://bd.old-releases.ubuntu.com/ubuntu focal-backports InRelease
Could not resolve 'bd.old-releases.ubuntu.com'
Get:5 http://packages.microsoft.com/repos/code stable/main amd64 Packages [86.2 kB]
Hit:6 https://packages.microsoft.com/repos/vscode stable InRelease
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:8 http://old-releases.ubuntu.com/ubuntu focal-security InRelease
Err:9 http://old-releases.ubuntu.com/ubuntu focal-security Release
404 Not Found [IP: 91.189.91.124 80]
Hit:10 https://repos.codelite.org/ubuntu jammy InRelease
Ign:11 https://repos.codelite.org/ubuntu ubuntu InRelease
Hit:12 https://repos.codelite.org/ubuntu focal InRelease
Err:13 https://repos.codelite.org/ubuntu ubuntu Release
404 Not Found [IP: 79.143.189.67 443]
Hit:14 https://download.sublimetext.com apt/stable/ InRelease
Ign:15 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu focal InRelease
Hit:16 http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu focal InRelease
Err:17 http://ppa.launchpad.net/damien-moore/codeblocks-stable/ubuntu focal Release
404 Not Found [IP: 185.125.190.52 80]
Reading package lists... Done
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-security Release' does
not have a Release file.
I am trying to downgrade Elastic Search from 7 to 6 as the application I am using only works on 6.
When I install 6 I get boosted to 7 for some reason:
{
"name" : "activecollab-v6",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "D7qs_zqTTX6Rv8AiE_ioqw",
"version" : {
"number" : "7.1.0",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "606a173",
"build_date" : "2019-05-16T00:43:15.323135Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}
How do I ensure I am downgraded? The following is my install recipe and below that is the recipe report which shows that elastic search is installed too.
# Install Elastic Search
echo ">> Installing Elastic GPG Key"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo ">> Install apt-transport-https"
apt install apt-transport-https
echo ">> Adding deb package"
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
echo ">> Updating apt"
apt update
echo ">> Installing Java and Elastic Search"
apt -y install default-jre elasticsearch
echo ">> Java Installed"
echo ">> Elastic Search Installed"
echo ">> Scheduling Elasticsearch"
/bin/systemctl daemon-reload
/bin/systemctl enable elasticsearch.service
echo ">> Starting Elasticsearch"
systemctl start elasticsearch.service
echo ">> Running on port 9200. Make sure to add a firewall rule if you need external access."
echo ">> You can check the status by running 'curl 'http://localhost:9200'. Note: may take a few seconds before elasticsearch is fully started."
Recipe Report
>> Installing Elastic GPG Key
Warning: apt-key output should not be parsed (stdout is not a terminal)
OK
>> Install apt-transport-https
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
apt-transport-https is already the newest version (1.6.10).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>> Adding deb package
deb https://artifacts.elastic.co/packages/6.x/apt stable main
>> Updating apt
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu bionic InRelease [15.4 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu bionic InRelease [242 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:5 http://ppa.launchpad.net/nginx/development/ubuntu bionic InRelease [15.4 kB]
Get:6 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic InRelease [20.7 kB]
Get:7 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
Get:8 http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease [15.4 kB]
Get:9 https://deb.nodesource.com/node_10.x bionic InRelease [4584 B]
Hit:10 https://repos.sonar.digitalocean.com/apt main InRelease
Get:11 http://mirrors.digitalocean.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:12 http://mirrors.digitalocean.com/ubuntu bionic-backports InRelease [74.6 kB]
Ign:13 https://artifacts.elastic.co/packages/6.x/apt stable InRelease
Get:14 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu bionic/main amd64 Packages [1004 B]
Get:15 http://ppa.launchpad.net/chris-lea/redis-server/ubuntu bionic/main Translation-en [584 B]
Ign:16 https://artifacts.elastic.co/packages/7.x/apt stable InRelease
Get:17 https://artifacts.elastic.co/packages/6.x/apt stable Release [5116 B]
Get:18 https://artifacts.elastic.co/packages/7.x/apt stable Release [5116 B]
Get:19 https://artifacts.elastic.co/packages/6.x/apt stable Release.gpg [473 B]
Get:20 https://artifacts.elastic.co/packages/7.x/apt stable Release.gpg [473 B]
Get:21 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [349 kB]
Get:22 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [125 kB]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [4296 B]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [2192 B]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [245 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [140 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [4004 B]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2060 B]
Get:29 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:31 http://ppa.launchpad.net/nginx/development/ubuntu bionic/main amd64 Packages [4264 B]
Get:32 http://ppa.launchpad.net/nginx/development/ubuntu bionic/main Translation-en [4328 B]
Get:33 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic/main amd64 Packages [8528 B]
Get:34 http://ppa.launchpad.net/ondrej/apache2/ubuntu bionic/main Translation-en [4052 B]
Get:35 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [45.1 kB]
Get:36 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main Translation-en [22.1 kB]
Get:37 http://mirrors.digitalocean.com/ubuntu bionic/main amd64 Packages [1019 kB]
Get:38 http://mirrors.digitalocean.com/ubuntu bionic/main Translation-en [516 kB]
Get:39 http://mirrors.digitalocean.com/ubuntu bionic/restricted amd64 Packages [9184 B]
Get:40 http://mirrors.digitalocean.com/ubuntu bionic/restricted Translation-en [3584 B]
Get:41 http://mirrors.digitalocean.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:42 https://deb.nodesource.com/node_10.x bionic/main amd64 Packages [767 B]
Get:43 http://mirrors.digitalocean.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:44 http://mirrors.digitalocean.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:45 http://mirrors.digitalocean.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:46 http://mirrors.digitalocean.com/ubuntu bionic-updates/main amd64 Packages [618 kB]
Get:47 http://mirrors.digitalocean.com/ubuntu bionic-updates/main Translation-en [229 kB]
Get:48 http://mirrors.digitalocean.com/ubuntu bionic-updates/restricted amd64 Packages [6996 B]
Get:49 http://mirrors.digitalocean.com/ubuntu bionic-updates/restricted Translation-en [3076 B]
Get:50 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe amd64 Packages [937 kB]
Get:51 http://mirrors.digitalocean.com/ubuntu bionic-updates/universe Translation-en [274 kB]
Get:52 http://mirrors.digitalocean.com/ubuntu bionic-updates/multiverse amd64 Packages [6644 B]
Get:53 http://mirrors.digitalocean.com/ubuntu bionic-updates/multiverse Translation-en [3556 B]
Get:54 http://mirrors.digitalocean.com/ubuntu bionic-backports/main amd64 Packages [1024 B]
Get:55 http://mirrors.digitalocean.com/ubuntu bionic-backports/main Translation-en [448 B]
Get:56 http://mirrors.digitalocean.com/ubuntu bionic-backports/universe amd64 Packages [3496 B]
Get:57 http://mirrors.digitalocean.com/ubuntu bionic-backports/universe Translation-en [1604 B]
Get:58 https://artifacts.elastic.co/packages/6.x/apt stable/main amd64 Packages [49.1 kB]
Get:59 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages [6534 B]
Fetched 32.8 MB in 8s (4196 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
7 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:2
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/elastic-6.x.list:1 and /etc/apt/sources.list.d/elastic-6.x.list:4
>> Installing Java and Elastic Search
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
default-jre is already the newest version (2:1.11-68ubuntu1~18.04.1).
The following NEW packages will be installed:
elasticsearch
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 347 MB of archives.
After this operation, 572 MB of additional disk space will be used.
Get:1 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 elasticsearch amd64 7.1.0 [347 MB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 347 MB in 6s (57.1 MB/s)
Selecting previously unselected package elasticsearch.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 91269 files and directories currently installed.)
Preparing to unpack .../elasticsearch_7.1.0_amd64.deb ...
Creating elasticsearch group... OK
Creating elasticsearch user... OK
Unpacking elasticsearch (7.1.0) ...
Processing triggers for ureadahead (0.100.0-21) ...
Setting up elasticsearch (7.1.0) ...
Created elasticsearch keystore in /etc/elasticsearch
Processing triggers for systemd (237-3ubuntu10.21) ...
Processing triggers for ureadahead (0.100.0-21) ...
>> Java Installed
>> Elastic Search Installed
>> Scheduling Elasticsearch
Synchronizing state of elasticsearch.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
Created symlink /etc/systemd/system/multi-user.target.wants/elasticsearch.service → /usr/lib/systemd/system/elasticsearch.service.
>> Starting Elasticsearch
>> Running on port 9200. Make sure to add a firewall rule if you need external access.
>> You can check the status by running 'curl 'http://localhost:9200'. Note: may take a few seconds before elasticsearch is fully started.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
There is no downgrade. Purge the install and start over.
The DEB repository looks correct. Have you always had it like that? Because this cannot get you version 7.x.
Update:
I can see the line Get:59 https://artifacts.elastic.co/packages/7.x/apt stable/main amd64 Packages [6534 B] in your output, so you have added both the 6.x and the 7.x repository. Remove the 7.x repo (/etc/apt/sources.list.d/elastic-7.x.list), purge, and install again.
Alternatively you could purge elasticsearch and specify the version to install: sudo apt-get install elasticsearch=6.8.0. I think this is the version number you could pick, but you can verify what is available with apt-cache policy elasticsearch.
I was in the same position to downgrade the elasticsearch from 7 to 6 without losing the data. The easy trick I did was, removed the existing elasticsearch, and installed a new one. It worked for me. I would like to give you steps to downgrade. I was using ubuntu server. Hence,
Stop the running server. sudo service elasticsearch stop
Remove the elasticsearch: sudo apt-get remove elasticsearch
Install the elasticsearch version 6.x
Installation reference link: Install elasticsearch in ubuntu
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt-get update && sudo apt-get install elasticsearch
Elasticsearch may start automatically. You can check the status: sudo service elasticsearch status. If it says failed then you can restart it with: sudo service elasticsearch restart or sudo systemctl restart elasticsearch. It should restart the elasticsearch server.
Done.
Warning!
I can't guarantee that the data will be there. Hence, make sure to backup your data before doing this step. Yes, it is true that I didn't lose my data.
I installed Ubuntu's unix bash on Windows 10 (this : https://www.microsoft.com/fr-fr/p/ubuntu/9nblggh4msv6#activetab=pivot:overviewtab )
it installed well but I can't "apt install" (yes, on this version it's just "apt install")
After typing my pw I have this :
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 gcc-7 gcc-7-base libasan4 libatomic1 libbinutils
libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2
libquadmath0 libtsan0 libubsan0 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc cpp-doc gcc-7-locales gcc-multilib make autoconf automake libtool flex bison gdb gcc-doc gcc-7-multilib
gcc-7-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg glibc-doc
The following NEW packages will be installed:
binutils binutils-common binutils-x86-64-linux-gnu cpp cpp-7 gcc gcc-7 gcc-7-base libasan4 libatomic1 libbinutils
libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libgcc-7-dev libgomp1 libisl19 libitm1 liblsan0 libmpc3 libmpx2
libquadmath0 libtsan0 libubsan0 linux-libc-dev manpages-dev
0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.9 MB of archives.
After this operation, 115 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-20ubuntu2~18.04
Ign:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-20ubuntu2~18.04
Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.88.152 80]
Ign:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-20ubuntu2~18.04
Ign:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-20ubuntu2~18.04
Err:2 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.91.23 80]
Err:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 gcc-7-base amd64 7.3.0-16ubuntu3
Connection failed [IP: 91.189.88.161 80]
Err:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libisl19 amd64 0.19-1
Connection failed [IP: 91.189.88.152 80]
Err:3 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.88.149 80]
Err:4 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-20ubuntu2~18.04
Connection failed [IP: 91.189.88.162 80]
Err:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpc3 amd64 1.1.0-1
Connection failed [IP: 91.189.91.23 80]
Err:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 cpp-7 amd64 7.3.0-16ubuntu3
Connection failed [IP: 91.189.88.149 80]
Err:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 cpp amd64 4:7.3.0-3ubuntu2
Connection failed [IP: 91.189.88.162 80]
Err:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcc1-0 amd64 8-20180414-1ubuntu2
Connection failed [IP: 91.189.88.161 80]
Err:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgomp1 amd64 8-20180414-1ubuntu2
Connection failed [IP: 91.189.88.152 80]
Err:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 libitm1 amd64 8-20180414-1ubuntu2
Connection failed [IP: 91.189.91.23 80]
(and then it continues until "Err:30")
then :
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
same when i try to update (and same for the fix missing option)
Do you have an idea of how to solve this ? I searched on google for hours without finding anything
tryed on different connections, with antivirus OFF etc, same.
thank you for your time !
I've seen this problem occur in the past with some computers that are using an IPv6 address. is your computer using one? Also There was a discussion a while back with this same error on another stackoverflow, I can't find the link to it now. In the end it was a corporate network issue blocking apt install. Check your firewall settings and also try to disable any third part anti virus/firewall you may be running. Refer to these links as well they should help.
https://github.com/Microsoft/WSL/issues/1720
https://www.reddit.com/r/bashonubuntuonwindows/comments/6h71ku/bash_aptget_wont_work/
I have deployed portfolio app recently. Now, I want to update my app through different machine(linux mint 14).So, to update my app, definitely I need to install heroku toolbelt on my machine, latter on I can go forward with remaining things. Right?.
But, here my problem is "I can't install heroku toolbelt on my machine".
While installing process it is showing up the following error
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
This script requires superuser access to install apt packages.
You will be prompted for your password by sudo.
--2013-11-14 16:23:38-- https://toolbelt.heroku.com/apt/release.key
Resolving toolbelt.heroku.com (toolbelt.heroku.com)... 174.129.17.173, 23.21.198.2, 54.243.76.97
Connecting to toolbelt.heroku.com (toolbelt.heroku.com)|174.129.17.173|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1737 (1.7K) [application/octet-stream]
Saving to: `STDOUT'
100%[=======================================>] 1,737 --.-K/s in 0s
2013-11-14 16:23:39 (22.2 MB/s) - written to stdout [1737/1737]
OK
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Ign http://archive.ubuntu.com quantal InRelease
Ign http://ppa.launchpad.net quantal InRelease
Ign http://packages.linuxmint.com nadia InRelease
Hit http://dl.google.com stable Release
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://archive.canonical.com quantal InRelease
Ign http://archive.ubuntu.com quantal-updates InRelease
Hit http://ppa.launchpad.net quantal Release.gpg
Hit http://dl.google.com stable/main i386 Packages
Get:1 http://packages.medibuntu.org quantal InRelease
Get:2 http://security.ubuntu.com quantal-security Release.gpg [933 B]
Get:3 http://packages.linuxmint.com nadia Release.gpg [198 B]
Hit http://archive.canonical.com quantal Release.gpg
Hit http://archive.ubuntu.com quantal Release.gpg
Hit http://ppa.launchpad.net quantal Release
Ign http://toolbelt.heroku.com ./ InRelease
Get:4 http://security.ubuntu.com quantal-security Release [49.6 kB]
Hit http://archive.canonical.com quantal Release
Get:5 http://packages.linuxmint.com nadia Release [18.6 kB]
Get:6 http://archive.ubuntu.com quantal-updates Release.gpg [933 B]
Get:7 http://packages.medibuntu.org quantal Release.gpg
Hit http://ppa.launchpad.net quantal/main Sources
Hit http://archive.canonical.com quantal/partner i386 Packages
Get:8 http://toolbelt.heroku.com ./ Release.gpg [490 B]
Hit http://archive.ubuntu.com quantal Release
Hit http://ppa.launchpad.net quantal/main i386 Packages
Get:9 http://packages.medibuntu.org quantal Release
Ign http://packages.medibuntu.org quantal Release
E: GPG error: http://packages.medibuntu.org quantal Release: The following signatures were invalid: NODATA 1 NODATA 2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package heroku-toolbelt
So, After that
I have followed the Google search,stack overflow search to resolve the problem.I am trying to install it through some other process which is identified through stack overflow, but still it is not solved my problem and it is showing up error with libnss3 dependencies as
libnss3-1d : Depends: libnss3 (= 3.13.1.with.ckbi.1.88-1ubuntu7) but 3.14.3-0ubuntu0.12.10.1 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
I have replaced this libnss3.13.1.with.ckbi.1.88-1ubuntu7 with libnss3.14.3-0ubuntu0.12.10.1 in order to support Google-chrome browser.
But it is not supported for Heroku. If i will install the previous versioned libnss3 then i should remove google-chrome.I need google chrome because it provides best developer tool support for debugging and profiling the app.
Please help me to resolve this installing heroku-toolbelt problem.
Thanks.
Try
wget -qO- https://toolbelt.heroku.com/install.sh | sh
And then add the Heroku CLI to your PATH using:
echo 'PATH="/usr/local/heroku/bin:$PATH"' >> ~/.profile
I think the error "/usr/bin/env: ruby: No such file or directory" means you need to install Ruby.
I have the following in my Vagrantfile. It install vim, but it does not install nodejs, git etc. How to change it so that it run apt-get install build-essential git-core python-software-properties nodejs? Or should I do this with puppet file?
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu32"
config.vm.provision :shell, path: './provision.sh'
config.vm.network "public_network"
end
provision.sh
apt-get update
apt-get install build-essential git-core python-software-properties nodejs
apt-get install vim -y
====
UPDATE: This is the outputs of vagrant up.
vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'ubuntu32'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
[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) p2p0
What interface should the network bridge to? 1
[default] Preparing network interfaces based on configuration...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] Booting VM...
[default] Waiting for machine to boot. This may take a few minutes...
[default] Machine booted and ready!
[default] The guest additions on this VM do not match the installed version of
VirtualBox! In most cases this is fine, but in rare cases it can
cause things such as shared folders to not work properly. If you see
shared folder errors, please update the guest additions within the
virtual machine and reload your VM.
Guest Additions Version: 4.2.0
VirtualBox Version: 4.3
[default] Configuring and enabling network interfaces...
[default] Mounting shared folders...
[default] -- /vagrant
[default] Running provisioner: shell...
[default] Running: /var/folders/y0/dzf6yf9n5r1bsl3p94lmv2fr0000gp/T/vagrant-shell20131108-47487-13ypot
stdin: is not a tty
Ign http://security.ubuntu.com precise-security InRelease
Get:1 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:2 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:3 http://security.ubuntu.com precise-security/main Sources [92.5 kB]
Get:4 http://security.ubuntu.com precise-security/restricted Sources [2,494 B]
Get:5 http://security.ubuntu.com precise-security/universe Sources [29.6 kB]
Ign http://us.archive.ubuntu.com precise InRelease
Get:6 http://security.ubuntu.com precise-security/multiverse Sources [1,804 B]
Ign http://us.archive.ubuntu.com precise-updates InRelease
Ign http://us.archive.ubuntu.com precise-backports InRelease
Get:7 http://us.archive.ubuntu.com precise Release.gpg [198 B]
Get:8 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:9 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:10 http://security.ubuntu.com precise-security/main i386 Packages [354 kB]
Get:11 http://us.archive.ubuntu.com precise Release [49.6 kB]
Get:12 http://security.ubuntu.com precise-security/restricted i386 Packages [4,620 B]
Get:13 http://us.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:14 http://security.ubuntu.com precise-security/universe i386 Packages [88.4 kB]
Get:15 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,640 B]
Get:16 http://us.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:17 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:18 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:19 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:20 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:21 http://us.archive.ubuntu.com precise/main Sources [934 kB]
Get:22 http://security.ubuntu.com precise-security/main Translation-en [159 kB]
Get:23 http://security.ubuntu.com precise-security/multiverse Translation-en [1,299 B]
Get:24 http://security.ubuntu.com precise-security/restricted Translation-en [1,253 B]
Get:25 http://security.ubuntu.com precise-security/universe Translation-en [53.8 kB]
Get:26 http://us.archive.ubuntu.com precise/restricted Sources [5,470 B]
Get:27 http://us.archive.ubuntu.com precise/universe Sources [5,019 kB]
Get:28 http://us.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:29 http://us.archive.ubuntu.com precise/main i386 Packages [1,274 kB]
Get:30 http://us.archive.ubuntu.com precise/restricted i386 Packages [8,431 B]
Get:31 http://us.archive.ubuntu.com precise/universe i386 Packages [4,796 kB]
Get:32 http://us.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:33 http://us.archive.ubuntu.com precise/main TranslationIndex [3,706 B]
Get:34 http://us.archive.ubuntu.com precise/multiverse TranslationIndex [2,676 B]
Get:35 http://us.archive.ubuntu.com precise/restricted TranslationIndex [2,596 B]
Get:36 http://us.archive.ubuntu.com precise/universe TranslationIndex [2,922 B]
Get:37 http://us.archive.ubuntu.com precise-updates/main Sources [424 kB]
Get:38 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,006 B]
Get:39 http://us.archive.ubuntu.com precise-updates/universe Sources [99.2 kB]
Get:40 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,354 B]
Get:41 http://us.archive.ubuntu.com precise-updates/main i386 Packages [723 kB]
Get:42 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [11.4 kB]
Get:43 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [225 kB]
Get:44 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [14.2 kB]
Get:45 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:46 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:47 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:48 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:49 http://us.archive.ubuntu.com precise-backports/main Sources [4,233 B]
Get:50 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:51 http://us.archive.ubuntu.com precise-backports/universe Sources [36.1 kB]
Get:52 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,311 B]
Get:53 http://us.archive.ubuntu.com precise-backports/main i386 Packages [2,838 B]
Get:54 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:55 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [36.7 kB]
Get:56 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,178 B]
Get:57 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:58 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:59 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:60 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:61 http://us.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:62 http://us.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:63 http://us.archive.ubuntu.com precise/restricted Translation-en [2,395 B]
Get:64 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB]
Get:65 http://us.archive.ubuntu.com precise-updates/main Translation-en [317 kB]
Get:66 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [8,136 B]
Get:67 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2,637 B]
Get:68 http://us.archive.ubuntu.com precise-updates/universe Translation-en [129 kB]
Get:69 http://us.archive.ubuntu.com precise-backports/main Translation-en [2,072 B]
Get:70 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,610 B]
Get:71 http://us.archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:72 http://us.archive.ubuntu.com precise-backports/universe Translation-en [26.9 kB]
Fetched 19.6 MB in 1min 21s (242 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
dpkg-dev fakeroot g++ g++-4.6 git git-man libalgorithm-diff-perl
libalgorithm-diff-xs-perl libalgorithm-merge-perl libc-ares2 libdpkg-perl
liberror-perl libev4 libicu48 libstdc++6-4.6-dev libv8-3.7.12.22 make patch
python-pycurl unattended-upgrades
Suggested packages:
debian-keyring g++-multilib g++-4.6-multilib gcc-4.6-doc libstdc++6-4.6-dbg
git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn
git-email git-gui gitk gitweb libstdc++6-4.6-doc make-doc diffutils-doc
libcurl4-gnutls-dev python-pycurl-dbg bsd-mailx
The following NEW packages will be installed:
build-essential dpkg-dev fakeroot g++ g++-4.6 git git-core git-man
libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
libc-ares2 libdpkg-perl liberror-perl libev4 libicu48 libstdc++6-4.6-dev
libv8-3.7.12.22 make nodejs patch python-pycurl python-software-properties
unattended-upgrades
0 upgraded, 24 newly installed, 0 to remove and 155 not upgraded.
Need to get 26.5 MB of archives.
After this operation, 72.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? Abort.
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libgpm2 libpython2.7 python2.7 python2.7-minimal vim-common vim-runtime
vim-tiny
Suggested packages:
gpm python2.7-doc binfmt-support ctags vim-doc vim-scripts indent
The following NEW packages will be installed:
libgpm2 libpython2.7 vim vim-runtime
The following packages will be upgraded:
python2.7 python2.7-minimal vim-common vim-tiny
4 upgraded, 4 newly installed, 0 to remove and 151 not upgraded.
Need to get 13.2 MB of archives.
After this operation, 27.8 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main libgpm2 i386 1.20.4-4 [16.9 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7 i386 2.7.3-0ubuntu3.4 [2,647 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main python2.7-minimal i386 2.7.3-0ubuntu3.4 [1,690 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-tiny i386 2:7.3.429-2ubuntu2.1 [380 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-common i386 2:7.3.429-2ubuntu2.1 [85.8 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libpython2.7 i386 2.7.3-0ubuntu3.4 [1,148 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim-runtime all 2:7.3.429-2ubuntu2.1 [6,277 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main vim i386 2:7.3.429-2ubuntu2.1 [979 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 13.2 MB in 49s (270 kB/s)
Selecting previously unselected package libgpm2.
(Reading database ... 29361 files and directories currently installed.)
Unpacking libgpm2 (from .../libgpm2_1.20.4-4_i386.deb) ...
Preparing to replace python2.7 2.7.3-0ubuntu3 (using .../python2.7_2.7.3-0ubuntu3.4_i386.deb) ...
Unpacking replacement python2.7 ...
Preparing to replace python2.7-minimal 2.7.3-0ubuntu3 (using .../python2.7-minimal_2.7.3-0ubuntu3.4_i386.deb) ...
Unpacking replacement python2.7-minimal ...
Processing triggers for man-db ...
Setting up python2.7-minimal (2.7.3-0ubuntu3.4) ...
(Reading database ... 29364 files and directories currently installed.)
Preparing to replace vim-tiny 2:7.3.429-2ubuntu2 (using .../vim-tiny_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Unpacking replacement vim-tiny ...
Preparing to replace vim-common 2:7.3.429-2ubuntu2 (using .../vim-common_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Unpacking replacement vim-common ...
Selecting previously unselected package libpython2.7.
Unpacking libpython2.7 (from .../libpython2.7_2.7.3-0ubuntu3.4_i386.deb) ...
Selecting previously unselected package vim-runtime.
Unpacking vim-runtime (from .../vim-runtime_2%3a7.3.429-2ubuntu2.1_all.deb) ...
Adding 'diversion of /usr/share/vim/vim73/doc/help.txt to /usr/share/vim/vim73/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim73/doc/tags to /usr/share/vim/vim73/doc/tags.vim-tiny by vim-runtime'
Selecting previously unselected package vim.
Unpacking vim (from .../vim_2%3a7.3.429-2ubuntu2.1_i386.deb) ...
Processing triggers for man-db ...
Setting up libgpm2 (1.20.4-4) ...
Setting up python2.7 (2.7.3-0ubuntu3.4) ...
Setting up vim-common (2:7.3.429-2ubuntu2.1) ...
Setting up vim-tiny (2:7.3.429-2ubuntu2.1) ...
Setting up libpython2.7 (2.7.3-0ubuntu3.4) ...
Setting up vim-runtime (2:7.3.429-2ubuntu2.1) ...
Processing /usr/share/vim/addons/doc
Setting up vim (2:7.3.429-2ubuntu2.1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode.
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
I am running Vagrant 1.3.5 and VirtualBox 4.3.2 r90405 on Mac OSX Mavericks. I downgrade VirtualBox to 4.2.18 (I will change to 4.2.0) and installed vagrant-vbguest
vagrant plugin install vagrant-vbguest
Then I run this command.
$sudo /Library/StartupItems/VirtualBox/VirtualBox restart
Found at vagrant 'hostonlyif' create not working
I added -y to apt-get
apt-get update
apt-get -y install build-essential git-core python-software-properties nodejs
apt-get -y install vim
Then it installed all.