Elasticsearch does not start on Ubuntu 14.04, possible error with lucene dependency

I have tried installing the elasticsearch package using apt on Ubuntu 14.04, but when I run sudo service elasticsearch status, I get the following output:

 * elasticsearch is not running  

I tried running sudo service elasticsearch start, and it claims to start OK.

However, no logs are recorded in /var/log/elasticsearch.

I tried running sudo /usr/share/elasticsearch/bin/elasticsearch, and got the following output:

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. Exception in thread "main" java.lang.NoSuchFieldError: LUCENE_7_0_0         at org.elasticsearch.Version.<clinit>(Version.java:50)         at org.elasticsearch.bootstrap.Bootstrap.<init>(Bootstrap.java:76)         at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:287)         at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:159)         at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:150)         at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86)         at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124)         at org.elasticsearch.cli.Command.main(Command.java:90)         at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:115)         at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92)  

What could be causing this error?

The elasticsearch documentation does not seem to include information on how to install lucene or where to configure its installation.

install php7.1-bcmath on ubuntu trusty 14.04

This question is only for Trusty (14.04)… Here is what I have done to install php7.1-bcmath:

sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php7.1-bcmath 

But I got the following result

E: Unable to locate package php7.1-bcmath 

I assume this is because ppa:ondrej/php support ubuntu versions starting from 16.04 and upper.

Is there a way to circumvent this? Like copying a deb file and using dpkg (If yes, where is this file)?

FYI, here is the result of apt-cache search php7 (very small isn’t it?)

php7.1-cli - command-line interpreter for the PHP scripting language php7.1-readline - readline module for PHP php7.1-opcache - Zend OpCache module for PHP php7.1-mysql - MySQL module for PHP php7.1-zip - Zip module for PHP php7.1-mbstring - MBSTRING module for PHP php7.1-json - JSON module for PHP php7.1-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP php7.1 - server-side, HTML-embedded scripting language (metapackage) php7.1-gd - GD module for PHP php7.1-curl - CURL module for PHP php7.1-bz2 - bzip2 module for PHP libapache2-mod-php7.1 - server-side, HTML-embedded scripting language (Apache 2 module) 

Downgrading from Vim 8.1 to Vim 7.4 in (L)Ubuntu 14.04

I firstly installed Vim in my (L)Ubuntu 14.04 with sudo apt-get install vim After that, as required from a plugin I wanted to use, I upgraded to Vim 8.1 using the ppa:jonathonf/vim repository. Being disappointed by that plugin I wanted to try another one but it has a still unsolved bug in Vim 8.1, this is why I now need to downgrade to Vim 7.4. My idea is to completely uninstall Vim and then reinstall it (having already removed ppa:jonathonf/vim).

To do so I tried

    sudo apt-get purge vim 


    sudo apt-get autoremove 

a couple of times and now I get this:

    user@computerName:~$   sudo apt-get purge vim     [sudo] password for user:      Reading package lists... Done     Building dependency tree            Reading state information... Done     Package 'vim' is not installed, so not removed     0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. 

However, Vim is still there and I can use it. If I check for Vim version within Vim I get this:

    :ve     VIM - Vi IMproved 8.1 (2018 May 18, compiled May 15 2019 14:58:47) 

Perhaps there is an easier way to downgrade a software in Linux? Or is my idea valid? Do you have any suggestion? Thank you!

PS: As advised by GiftZwergrapper:

    user@computerName:~$   which vim     /usr/bin/vim 

How to find package equivalents of 14.04 (trusty) in 18.04 (bionic)

I am migrating our software from Trusty to Bionic. On trusty, there were many dependencies which were manually installed, but many of those were removed/renamed in Xenial itself and not available on Bionic. For e.g., gdb-minimal, python-support etc. Is there any easy way to find the equivalent packages for these, on Bionic ? Or, will some of them have to built for Bionic if they are mandatory ?

VirtualBox and Ubuntu 14.04 why so slow?

The host system is an iMAC:

    macOS Mojave     Version 10.14.5     iMac (Retina 5K, 27-inch, Late 2015)     Processor 4 GHz Intel Core i7     Memory 16 GB 1867 MHz DDR3     Graphics AMD Radeon R9 M395X 4 GB 


    Version: 6.08 r130520 (Qt5.6.3)     VirtualBox 6.0.8 Oracle VM VirtualBox Extension Pack 

The VM is painfully slow, when I click on the desktop in the VM I have several seconds before I see a response. Is there anything I can do to improve the performance. The host system is super quick.

14.04 to 16.04 Xenial

Just “upgraded” from 14.04 to 16.04 and restarting doesn’t work. Also when I start from “hard”, I get booting twice. First about 8 sec. time followed immediately by another of some 26 sec. Very troublesome case. Tried to search for /ect/run/runleves/boot and rc*.d to no avail. May be the best way is to revert back to 14.04. Victor

How can I upgrade glibc 2.19 to 2.21 or later on Ubuntu 14.04?

I am running Ubuntu 14.04, and I need to upgrade glibc to at least version 2.21 to run Matlab 2018b. I have 2.19 version. I tried this solution but the candidates version am getting is just glibc 2.19. I can’t upgrade my ubuntu version because am running ROS along side with Matlab and it is supported on ubuntu 14.04

Any ideas!! Thanks

Ubuntu 14.04 Taking too much time to boot and screen is blinking continuously before startup

In ubuntu 14.04 the screen is continuously blinking before the startup and its taking more than 2 minutes for boot. This issue is persisting after upgrade and update.

Here i’m adding the picture of boot screen enter image description here

I have no idea why this is happening my PC is dual boot with windows. Any assistance regarding this issue will be helpful.

Install Ubuntu Mate using its ISO image afresh or Ubuntu MATE over 14.04 using terminal – better option?

As Ubuntu 14.04 is going to end for 32bit, should I install Ubuntu MATE over 14.04 using code sudo apt-get install ubuntu-mate-core ubuntu-mate-desktop in the terminal OR first remove Ubuntu 14.04 and fresh install Ubuntu MATE 18.04.2 LTS (Bionic) using its ISO image? Please suggest which way would be better as need to have a secure environment going ahead on my 32 bit Dell Inspiron which is working fine till date with dual boot.