error installing google chrome on mint 16 - google-chrome

this is how it is shown in the terminal
adarsh#adarsh-desktop ~ $ sudo dpkg -i Downloads/google-chrome-stable_current_i386.deb
[sudo] password for adarsh:
Selecting previously unselected package google-chrome-stable.
(Reading database ... 145305 files and directories currently installed.)
Unpacking google-chrome-stable (from .../google-chrome-stable_current_i386.deb) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing Downloads/google-chrome-stable_current_i386.deb (--install):
cannot copy extracted data for './opt/google/chrome/locales/tr.pak' to '/opt/google/chrome/locales/tr.pak.dpkg-new': unexpected end of file or stream
Errors were encountered while processing:
Downloads/google-chrome-stable_current_i386.deb
pls help
i am new to linux. i tried all sorts of methods.

The terminal gives information needed to fix this, if you read the last few lines. . .
unexpected end of file or stream Errors were encountered while processing: Downloads/google-chrome-stable_current_i386.deb
The Downloaded .deb file is probably corrupt (/incomplete) and you may need a new one for a fresh install.
Now you may complete the installation in two ways:
Download the .deb file again from the the website and install it through the terminal
sudo dpkg -i PACKAGE_NAME.deb
Download the .deb file again from the the website and use a package installer such as App-grid or Ubuntu Software Center or gdebi for GUI based installation.
You can do the whole process of downloading, installing and launching Google Chrome again using this one line on your Lunix machine
cd /tmp && wget https://dl.google.com/linux/direct/google-chrome-stable_current_i386.deb && sudo dpkg -i google-chrome-stable_current_i386.deb && sudo apt-get -f install && google-chrome
the above line does 5 things:
Changes directory to /tmp folder.
Downloads latest version of Google Chrome browser (32bit).
installs the downloaded Google Chrome package.
installs missing dependencies.
launches google-chrome once installed.

Related

apt-get install error while processing vsftpd: cannot create directory

I receive the following error when using RVM to install ruby with rvm install 2.3.0. This is from the log file RVM produces.
Setting up vsftpd (3.0.3-8+b1) ...
vsftpd user (ftp) already exists, doing nothing.
mkdir: cannot create directory ‘/srv/ftp’: Permission denied
dpkg: error processing package vsftpd (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
vsftpd
E: Sub-process /usr/bin/dpkg returned an error code (1)
Infact, anytime I run an apt-get install command I always get this warning about vsftpd. I have always just ignored it as packages install just fine. The main problem now is that RVM is now picking up on this error as being critical so it stops installing Ruby.
The problem is that the folder /srv/ftp physically can not be created even by root (or at least I don't know how to). The way my server is set up is that the /srv/ folder only exists to mount external disk drives so I can't create an arbitrary folder here.
E.g. datadisk01 would be mounted onto /srv/datadisk01
Is there a way to change where vsftpd creates this ftp folder to a different location so it will run properly? OR is there a way I can force RVM to ignore this error message?
I would prefer the answer that fixes the error but my main objective is just to get Ruby installed.
I have already tried removing vsftpd with apt-get but it still persists.

The package mysql-server-5.7 needs to be reinstalled, but I can't find an archive for it

My MySql is not working. When I want to reinstall MySql on linux server the I it shows following message.
sudo apt install mysql-server mysql-client --fix-broken
message:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package mysql-server-5.7 needs to be reinstalled, but I can't find an archive for it.
Try sudo dpkg --remove --force-all mysql-server-5.7
If that doesn't work,
sudo vim /var/lib/dpkg/status
You can do this with any text editor.
After you open that find the section about mysql-server-5.7. Delete the section with the information pertaining to it and save the file. Make sure you do a backup of the status file before you do this.
Reinstall your package using apt-get install
In my case, the installation was messed up and I had to remove the requirement with dpkg
I received a message like:
E: The package <package-name> needs to be reinstalled, but I can't find an archive for it.
I was able to resolve like this:
Query faulty packages using dkpg
$ dpkg -C
The following packages are in a mess due to serious problems during
installation. They must be reinstalled for them (and any packages
that depend on them) to function properly:
<package-name> (no description available)
The following packages are missing the list control file in the
database, they need to be reinstalled:
<package-name> (no description available)
The following packages are missing the md5sums control file in the
database, they need to be reinstalled:
<package-name> (no description available)
force-remove install requirement for each listed package
$ sudo dpkg --remove --force-remove-reinstreq <package-name>

Raspberry dpkg "files list file for package '<pck_name>' missing AND cannot allocate memory

I have the following issue:
when I try to
apt-get upgrade
I receive some dpkg warning, (picture attached).
dpkg: warning: files list file for package 'php5-json' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'php5' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'php5-readline' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'php5-cli' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'php5-common' missing; assuming package has no files currently installed
dpkg: unrecoverable fatal error, aborting:
failed to allocate memory: cannot allocate memory
E: Sub-process /usr/bin/dpkg returned an error code (2)
This happens also when I try to install these singles packages, and when I try to remove them. I also tried without success to remove the whole apache2 and php5 packages. Either apt-get autoremove and autoclean followed by update and upgrade does not change the outcome.
I have some free space on SD card, and I tried some proposed solutions to similar issues:
Tried to manually delete .deb files in /var/cache/apt/archives/ as explained here
Tried to force reinstallation as explained here
Also tried a bunch of similar solutions, without success...
Please, can someone point me in the right direction? This problem leads to an error launching apache2, and I can't use my websites.
Thank you!
Try sudo apt-get install -f to fix your dependencies
Also sudo dpkg --configure -a to fix your installations

GCE LetsEncrypt Error - Cannot locate wrapped file

I am running into an issue with executing 'letsencrypt-auto' on the GCE Bitnami Ghost image.
The issue can be reproduced using the base installer below:
https://cloud.google.com/launcher/solution/bitnami-launchpad/ghost
Here is the command I use, and it's output:
sudo wget https://github.com/letsencrypt/letsencrypt/archive/master.zip
sudo unzip master.zip
cd letsencrypt
sudo /opt/bitnami/ctlscript.sh stop
sudo ./letsencrypt-auto --debug
..install dependencies...
**Reading package lists... Done **
Reading package lists... Done
**Building dependency tree **
Reading state information... Done
ca-certificates is already the newest version.
dialog is already the newest version.
gcc is already the newest version.
libffi-dev is already the newest version.
python is already the newest version.
python-dev is already the newest version.
python-virtualenv is already the newest version.
libssl-dev is already the newest version.
augeas-lenses is already the newest version.
libaugeas0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Checking for new version...
Creating virtual environment...
Cannot locate wrapped file
Dependencies were all installed without issue. I have tried from both the 'home' directory and the root of the drive.
I have also tried:
./letsencrypt-auto --apache -d {domain}
./letsencrypt-auto certonly -w /home/bitnami/htdocs -d {domain}
Any ideas what could be causing the wrapped file issue?
Problem solved. Thanks for the suggestions here:
https://github.com/letsencrypt/letsencrypt/issues/2554
The key with on Bitnami seems to be to run the command on the "bitnami console"
More info about this here: https://wiki.bitnami.com/Components/BitNami_console

sudo apt-get install xvfb

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libruby1.8
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
xserver-common
The following NEW packages will be installed:
xvfb
The following packages will be upgraded:
xserver-common
1 upgraded, 1 newly installed, 0 to remove and 308 not upgraded.
1 not fully installed or removed.
Need to get 0 B/899 kB of archives.
After this operation, 2,068 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up apt (0.8.16~exp5ubuntu13.2) ...
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
gpg: symbol lookup error: /usr/local/lib/libreadline.so.6: undefined symbol: UP
dpkg: error processing apt (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
apt
E: Sub-process /usr/bin/dpkg returned an error code (1)
Why I cannot install xvfb?
Get your admin to run this:
su
mkdir temp
mv /usr/local/lib/libreadline* temp
ldconfig
apt-get update
Then run your apt-get again
It seems the package xvfb uses the command "gpg" in the post install script. The gpg command seems to depend on libreadline, which does not seem to be compatible with gpg.
This is really strange. Usually a Debian/Ubuntu system does not install anything under /usr/local and the dependencies are in order. Could it be you have yourself installed libreadline into /usr/local/lib?
Ask the package manager which package owns the file /usr/local/lib/libreadline.so.6:
dpkg -S /usr/local/lib/libreadline.so.6
If it tells you a package where the file belongs, try to remove that package with
dpkg -P packagename
If no package owns it, remove the file.
If you want to keep /usr/local/lib/libreadline.so.6 and still have a working system, you should prevent programs from using it unless explicitly told to do so. You have probably modified the dynamic linker configuration in /etc/ld.so.conf. Undo those changes to get back to a working system.