Ubuntu install PHP couchbase extension - linux

I run composer install for new project and I got eror:
the requested PHP extension couchbase is missing from your system. To enable extensions, verify that they are enabled in your .ini files:
So I was trying to intall couchbase SDK from official website:
# Only needed during first-time setup:
wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-4-amd64.deb
sudo dpkg -i couchbase-release-1.0-4-amd64.deb
# Will install or upgrade packages
sudo apt-get update
sudo apt-get install libcouchbase-dev libcouchbase2-bin build-essential
after sudo dpkg -i couchbase-release-1.0-4-amd64.deb i got error:
(Reading database ... 155822 files and directories currently installed.)
Preparing to unpack couchbase-release-1.0-4-amd64.deb ...
Supported platforms are: Debian/wheezy,jessie and Ubuntu/lucid,precise,trusty,xenial
dpkg: error processing archive couchbase-release-1.0-4-amd64.deb (--install):
new couchbase-release package pre-installation script subprocess returned error exit status 1
Errors were encountered while processing:
couchbase-release-1.0-4-amd64.deb
I use Ubuntu 18.04 LTS and PHP 7.1

Related

Cannot install nodejs on ubuntu 22.04

im trying to install NodeJS LTS on my vm. But ubuntu (22.04) throws an error
Error:
root#web-server ~/server# sudo apt list nodejs
Listing... Done
nodejs/unknown 18.12.0-deb-1nodesource1 arm64
N: There is 1 additional version. Please use the '-a' switch to see it
root#web-server ~/server# sudo apt install nodejs
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
javascript-common libc-ares2 libjs-highlight.js libnode72
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 93 not upgraded.
Need to get 0 B/27.8 MB of archives.
After this operation, 180 MB of additional disk space will be used.
(Reading database ... 83553 files and directories currently installed.)
Preparing to unpack .../nodejs_18.12.0-deb-1nodesource1_arm64.deb ...
Unpacking nodejs (18.12.0-deb-1nodesource1) ...
dpkg: error processing archive /var/cache/apt/archives/nodejs_18.12.0-deb-1nodesource1_arm64.deb (--unpack):
trying to overwrite '/usr/share/systemtap/tapset/node.stp', which is also in package libnode72:arm64 12.22.9~dfsg-1ubuntu3
Errors were encountered while processing:
/var/cache/apt/archives/nodejs_18.12.0-deb-1nodesource1_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root#web-server ~/server [100]#
I tried to delete and install it again multiple times bu nothing happens
Follow this link: Github Error solved link
and reinstall nodejs with the following command as given below
Installed Nodejs version-12.22.9 Successfully on my Ubuntu 22.04
sudo apt update
sudo apt install nodejs
Press Y when prompted to confirm installation. If you are prompted to restart any services, press ENTER to accept the defaults and continue. Check that the install was successful by querying node for its version number:
node -v
Output
v 12.22.9
Try this:
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
$ source ~/.bashrc
$ nvm list-remote
$ nvm install v16.14.0
$ nvm install lts/fermium
$ node -v
These steps will install nodejs v14.19.0.
There is a very helpful link to setup or update nodejs on Ubuntu 22.4
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-22-04
you can visit it for more details.

install Tizen studio 3.7 on Ubuntu 19.10 or 20.04?

I am stuck on this warning while installing Tizen studio via package manager as it requires a preriquisite:
sudo apt-get install libwebkitgtk-1.0-0
running this command finds nothing. Following askubuntu forum I downloaded bunch of webkitgtk packages from here. Finally I got this error that demonstrates it requires more dependencies.
sudo dpkg -i '/home/rif/Downloads/w/libwebkitgtk-1.0-0_2.4.11-0ubuntu0.1_amd64.deb'
error:
Selecting previously unselected package libwebkitgtk-1.0-0:amd64.
(Reading database ... 156927 files and directories currently installed.)
Preparing to unpack .../libwebkitgtk-1.0-0_2.4.11-0ubuntu0.1_amd64.deb ...
Unpacking libwebkitgtk-1.0-0:amd64 (2.4.11-0ubuntu0.1) ...
dpkg: dependency problems prevent configuration of libwebkitgtk-1.0-0:amd64:
libwebkitgtk-1.0-0:amd64 depends on libjavascriptcoregtk-1.0-0 (= 2.4.11-0ubuntu0.1); however:
Package libjavascriptcoregtk-1.0-0 is not installed.
libwebkitgtk-1.0-0:amd64 depends on libegl1-mesa (>= 7.8.1) | libegl1-x11; however:
...and more stuff not installed, message...
Package libwebkitgtk-1.0-common is not installed.
dpkg: error processing package libwebkitgtk-1.0-0:amd64 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Errors were encountered while processing:
libwebkitgtk-1.0-0:amd64
I have no idea what I should do to install this on Linux. How can I install it Tizen studio on Linux 20.04?
The easiest way to install libwebkitgtk-1.0-0 on Ubuntu 19/20 for now is listed below
echo -e "# For Tizen studio\ndeb http://cz.archive.ubuntu.com/ubuntu bionic main universe" | sudo tee /etc/apt/sources.list.d/tizen-bionic-libwebkitgtk.list
sudo apt update
sudo apt-get install libwebkitgtk-1.0-0
And once the libwebkitgtk-1.0-0 is installed the user might face difficulty in installing libpng12 as well when trying to install any emulators.
Steps to install libpng12 are below
sudo add-apt-repository ppa:linuxuprising/libpng12
sudo apt-get update
sudo apt-get install libpng12-0
After installing the libpng12 & libwebkitgtk-1.0-0 packages, user will be able to install any profile in Ubuntu 19 or Ubuntu 20.
Tizen Studio does not officially support Ubuntu 19 & Ubuntu 20 as of now.
Official support for Ubuntu 20 LTS is expected soon
There is no libwebkitgtk-1.0 for Ubuntu 19.10 or 20.04: https://packages.ubuntu.com/search?keywords=libwebkitgtk-1.0-0
If you want libwebkitgtk-1.0 in Ubuntu 19.10/20.04, you will need to download its source code and try to build (probably with debuild) or install Ubuntu 18.04 in a docker.
Other Tizen tools are not yet officially supported in 19.10 or 20.04.
Or you may contact admins and ask them to add another Ubuntu version support at https://launchpad.net/~tizen.org/+archive/ubuntu/pdk

Installing NodeJS on Ubuntu 16.04 Server with the Package manager installs only the distro version (v.4) instead of LTS

I have this odd problem that when I try to install NodeJS on a fresh Ubuntu Server VM.
I execute the two simple steps from the official instruction but somehow I manage to fail.
In the home directory of my user I execute curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - which ends successfully and then sudo apt-get install -y nodejs but this results in the installation of v.4.2.6.
Output can be seen below:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/3161 kB of archives.
After this operation, 13,2 MB of additional disk space will be used.
Selecting previously unselected package nodejs.
(Reading database ... 97187 files and directories currently installed.)
Preparing to unpack .../nodejs_4.2.6~dfsg-1ubuntu4.1_amd64.deb ...
Unpacking nodejs (4.2.6~dfsg-1ubuntu4.1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (4.2.6~dfsg-1ubuntu4.1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Please help.
You probably have to run sudo apt-get update before sudo apt-get install to update the local package lists after adding the sources for 6.x. If you do that, you should see version 6 being installed.
The answer was hiding in this thread: Installing NodeJS on Ubuntu Trusty
So it must have been some kind of an issue with curl using the local network so I used wget to download like this:
wget https://deb.nodesource.com/setup_6.x
And then from the same directory:
sudo bash ./setup_6.x
And finally:
sudo apt-get install nodejs
Which did it.
You might consider using nvm to install Node instead of the distro package. This offers you more flexibility in managing your version of Node.

Corrupted filesystem tarfile - corrupted package archive Ubuntu

I'm trying to compile and install an open source application on Ubuntu. I can make the application, make the installer, and make the package. I don't see any error during those steps. when I issue the dpkg -i to install it if fails with the following error.
dpkg: error processing archive application.deb (--install):
corrupted filesystem tarfile - corrupted package archive
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
I can only find references to fixing the issue when downloading files and say to issue apt-get clean and purge. I've done that and it doesn't work and it doesn't seem applicable since I'm creating the install file. When I issue dpkg -c application.deb, it shows me the contents, so the file isn't total corrupted.
Any suggestions on how to get this application to install?
Following the description on https://github.com/Brewtarget/brewtarget on a newly installed Ubuntu 14.04.3 gives me a .deb that installs.
These are the commands I ran:
$ sudo apt-get install cmake git qtbase5-dev qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5webkit5-dev libqt5sql5-sqlite libqt5svg5 libqt5multimedia5-plugins doxygen
$ git clone https://github.com/Brewtarget/brewtarget.git
$ mkdir brewtarget-build
$ cd brewtarget-build
$ cmake ../brewtarget
$ make
$ make package
$ sudo apt-get install libphonon4 libqt4-webkit phonon phonon-backend-vlc
$ sudo dpkg -i brewtarget*.deb
Selecting previously unselected package brewtarget_2.2.0.
(Reading database ... 175209 files and directories currently installed.)
Preparing to unpack brewtarget_2.2.0_x86_64.deb ...
Unpacking brewtarget_2.2.0 (2.2.0-1) ...
Setting up brewtarget_2.2.0 (2.2.0-1) ...
$ file *.deb
brewtarget_2.2.0_x86_64.deb: Debian binary package (format 2.0)
What version of Ubuntu are you running?
It is odd that your error message says "application.deb", as I got a .deb named "brewtarget_2.2.0_x86_64.deb" when following the instructions.
Try these commands
# sudo dpkg -i --force-overwrite application.deb
After that run
# sudo apt-get -f install

Installing sublime text 3 on AWS Ubuntu 14.04.1 LTS

Sublime-text is a fast editor for Windows and Linux. I failed to install sublime text 3 on AWS Ubuntu 14.04.1 LTS using the following commands:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
Results in following error message:
p: cannot create regular file "/usr/share/icons/hicolor/16x16/apps/":
No such file or directory dpkg: error processing package sublime-text-installer (--configure):
subprocess installed post-installation script returned error exit status 1
I see following directories under /usr/share/icons/hicolor/
32
48
64
So, I created 16x16 subdirectory, but then it gives an error for 32x32 directory doesnot exist. Did anyone experience this problem before? I will appreciate any help.
sublime-text is a GUI application that needs a GTK installation. Your server is missing that dependency. (In a perfect world, it should be a dependency of the package of course.)
Install libgtk2 (as root):
apt-get install libgtk2.0-common
and then reinstall sublime-text, probably using:
apt-get purge sublime-text-installer ; apt-get install sublime-text-installer

Resources