bench
bench copied to clipboard
Cannot easy install in ubuntu 18.04 with last given error/warning "Could not find aptitude. Using apt-get instead"
Issue: Easy Install
Do the checklist before filing an issue:
- [x] Did you retain the logfile (path of logfile is shared while the script is run)? We definitely need the logfile to debug any easy install related issues.
- [ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome
Distro Information (Required)
- uname -a Linux ubuntu1 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- cat /etc/*-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS" NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.4 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic
Command Run (Required) I am completely following the wiki: https://github.com/frappe/bench#easy-install-script, and when I reached the step - run the command "python3 install.py --production", the error came out.
Log File (Required) Upload easy-install__2020-08-19__09-00.log easy-install__2020-08-19__09-02.log
Screenshots
Additional context It's a fresh install of ubuntu 18.04 on Virtualbox(using official site iso image, Virtualbox configuration is x86_64 with 2 CPU cores, 2GB RAM and 20GB Drive), and completely followed the wiki: https://github.com/frappe/bench#easy-install-script
Possible Solution Sorry I am not sure, but thank anyone who will be willing to look at this issue.
Well, I think this might be a general problem because I have done the same process now on an Ubuntu 20.04, which just gets stuck at the same place giving the same error.
Furthermore, it gives one more error that didn't occur on Ubuntu 18.04:
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed
From the log file, failure at Install prerequisites using apt-get
:
"msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" --force-yes install 'dnsmasq' 'fontconfig' 'libcrypto++-dev' 'libfreetype6-dev' 'liblcms2-dev' 'libwebp-dev' 'libxrender1' 'libxslt1-dev' 'ntp' 'postfix' 'python-tk' 'xfonts-75dpi' 'xfonts-base' 'zlib1g-dev' 'apt-transport-https' 'libsasl2-dev' 'libldap2-dev' 'libcups2-dev' 'pv'' failed: W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/icu-le-hb/libicu-le-hb0_1.0.3+git161113-4_amd64.deb Hash Sum mismatch\n Hashes of expected file:\n - SHA256:08cc204a4d64e02c9fc376eaf46f3daae71b2d39994e2aba68a48fb19c29afe4\n - SHA1:81a974965ec69b50a4f5554ba98ce27aab530268 [weak]\n - MD5Sum:5111ebc3b8508a331ccb179ea0b73663 [weak]\n - Filesize:14328 [weak]\n Hashes of received file:\n - SHA256:4db3f5b3520e5de3680f93d1d2ee9bcc67deaae2b7709a82265193ebcc99f66d\n - SHA1:1ca503d82058edfe97f5e4ea28135e8f337b154c [weak]\n - MD5Sum:40769fe11fa9052e5d21d4bbcc4eb3ed [weak]\n - Filesize:14328 [weak]\n Last modification reported: Sun, 10 Dec 2017 09:28:36 +0000\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n",
"rc": 100,
"stderr": "W: --force-yes is deprecated, use one of the options starting with --allow instead.\nE: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/icu-le-hb/libicu-le-hb0_1.0.3+git161113-4_amd64.deb Hash Sum mismatch\n Hashes of expected file:\n - SHA256:08cc204a4d64e02c9fc376eaf46f3daae71b2d39994e2aba68a48fb19c29afe4\n - SHA1:81a974965ec69b50a4f5554ba98ce27aab530268 [weak]\n - MD5Sum:5111ebc3b8508a331ccb179ea0b73663 [weak]\n - Filesize:14328 [weak]\n Hashes of received file:\n - SHA256:4db3f5b3520e5de3680f93d1d2ee9bcc67deaae2b7709a82265193ebcc99f66d\n - SHA1:1ca503d82058edfe97f5e4ea28135e8f337b154c [weak]\n - MD5Sum:40769fe11fa9052e5d21d4bbcc4eb3ed [weak]\n - Filesize:14328 [weak]\n Last modification reported: Sun, 10 Dec 2017 09:28:36 +0000\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n",
"stderr_lines": [
"W: --force-yes is deprecated, use one of the options starting with --allow instead.",
"E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/i/icu-le-hb/libicu-le-hb0_1.0.3+git161113-4_amd64.deb Hash Sum mismatch",
" Hashes of expected file:",
" - SHA256:08cc204a4d64e02c9fc376eaf46f3daae71b2d39994e2aba68a48fb19c29afe4",
" - SHA1:81a974965ec69b50a4f5554ba98ce27aab530268 [weak]",
" - MD5Sum:5111ebc3b8508a331ccb179ea0b73663 [weak]",
" - Filesize:14328 [weak]",
" Hashes of received file:",
" - SHA256:4db3f5b3520e5de3680f93d1d2ee9bcc67deaae2b7709a82265193ebcc99f66d",
" - SHA1:1ca503d82058edfe97f5e4ea28135e8f337b154c [weak]",
" - MD5Sum:40769fe11fa9052e5d21d4bbcc4eb3ed [weak]",
" - Filesize:14328 [weak]",
" Last modification reported: Sun, 10 Dec 2017 09:28:36 +0000",
"E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"
],
You can check this guideline for a step by step installation and run for Production http://ghulamustafa.com/2020/09/15/how-to-install-erpnext-on-ubuntu-20-04/
Well, I think this might be a general problem because I have done the same process now on an Ubuntu 20.04, which just gets stuck at the same place giving the same error. Furthermore, it gives one more error that didn't occur on Ubuntu 18.04:
ERROR: launchpadlib 1.10.13 requires testresources, which is not installed
@Ericwonne you can check my experience report and solutions here: https://about.lovia.life/docs/infrastructure/erpnext/install-erpnext-on-ubuntu-vm/
Specifically:
-
LC_ALL
is caused by your local ssh client. TL;DR:sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
and relogin SSH. -
launchpadlib
workaround:sudo -H python3 -m pip install --upgrade launchpadlib
About "Could not find aptitude", that is a harmless but annoying warning (https://github.com/ansible/ansible/issues/56832) that was fixed in (still in beta) Ansible 2.10.2.
Ansible 2.9.x is stable newer versions.
Unfortunately for some reason Easy Install Script installed Ansible hardcoded to version 2.8.5:
ubuntu@ip-172-30-0-218:/tmp/.bench$ ansible --version
ansible 2.8.5
config file = None
configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.8/dist-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.8.2 (default, Jul 16 2020, 14:00:26) [GCC 9.3.0]
Note: Currently Ansible 2.8.15 is available, which should have no breaking changes in 2.8 branch.