I have a dell inspiron 14-3467, Ubuntu 18.04. I wanted to install the Opera Browser and the installation was interrupted. It asks me to run:
sudo dpkg --configure -a
and the machine stays frozen:
Setting up pepperflashplugin-nonfree (1.8.3+nmu1ubuntu1).....
When I run dpkg --list I get this:
iF pepperflashplugin-nonfree 1.8.3+nmu1ubuntu1 amd64 Pepper Flash Player - browser plugin
If I run sudo apt-get install -f it also freezes in:
Setting up pepperflashplugin-nonfree (1.8.3+nmu1ubuntu1).....
How can I solve it? Is there a way to eliminate pepperflash or is it necessary to have it?
#remove lock files
rm /var/lib/dpkg/lock
rm /var/lib/dpkg/lock-frontend
rm /var/cache/apt/archives/lock
#remove pepperflash
apt remove pepperflashplugin-nonfree
#repair dpkg now success
dpkg --configure -a
To see what this package is, use apt-cache:
apt-cache show pepperflashplugin-nonfree
If you deem it unnecessary, remove it:
apt purge pepperflashplugin-nonfree
apt-cache show pepperflashplugin-nonfree
Package: pepperflashplugin-nonfree
Architecture: amd64
Version: 1.8.3+nmu1ubuntu1
Priority: optional
Section: multiverse/web
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss#lists.ubuntu.com>
Original-Maintainer: Bart Martens <bartm#debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 31
Pre-Depends: ca-certificates
Depends: debconf | debconf-2.0, wget, gnupg1 | gnupg, libatk1.0-0, libcairo2, libfontconfig1, libfreetype6, libgcc1, libglib2.0-0, libgtk2.0-0 (>= 2.14), libnspr4, libnss3, libpango-1.0-0 | libpango1.0-0, libstdc++6, libx11-6, libxext6, libxt6, libcurl3-gnutls, binutils
Suggests: chromium-browser, ttf-mscorefonts-installer, ttf-dejavu, ttf-xfree86-nonfree
Conflicts: chromium-browser (<< 37.0.2062.120-4), libflash-mozplugin
Filename: pool/multiverse/p/pepperflashplugin-nonfree/pepperflashplugin-nonfree_1.8.3+nmu1ubuntu1_amd64.deb
Size: 5536
MD5sum: 47b06fd1cf1d511cc5cf6f7ae979b81b
SHA1: 41636ebbc23d68d2f9c8f72f78a17efd854aac5d
SHA256: 3b21cb1a611d70e1fdc5948c4d4a43c442d71b1f2dc3dac53b5315e90d395347
Homepage: http://wiki.debian.org/PepperFlashPlayer
Description-en: Pepper Flash Player - browser plugin
This package will download Chrome from Adobe, and unpack it to make the
included Pepper Flash Player available for use with Chromium. The end user
license agreement is available at Adobe.
Description-md5: ffddffcbb66de5d31dd4c784e6aa4973
apt purge pepperflashplugin-nonfree
E: Could not lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: The administration directory (/var/lib/dpkg/) could not be locked, maybe there is some other process using it?
Related
i have to install mysql-server for my project. but while i install with sudo apt install mysql-server it say's E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) and E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?. i'd try to search the solving method but is has no change. thanks for any help
(edit)
and also i get this error The following packages have unmet dependencies: mysql-server-core-8.0 : Depends: libprotobuf-lite23 (>= 3.12.4) but it is not installable
The error indicates that another process is updating on your Linux machine.
You can check what processes are locking the file by running:
sudo lsof /var/lib/dpkg/lock-frontend
and kill the PID indicated by the command. If no processes are indicated by the command above, the easiest and fastest way to solve the issue is by rebooting your machine.
After the reboot rerun the command:
sudo apt install mysql-server
If the error persists, delete the lock-frontend file and reshot the command above.
Maybe you have some active apt process already?
check it:
ps aux | grep -I apt
then
sudo kill 'busy process id'
or you can kill all apt processes:
sudo killall apt apt-get
and try install MySQL again
In other case you have a locked file, just check it:
sudo lsof /var/lib/dpkg/lock-frontend
then you try to remove lock
sudo rm /var/lib/dpkg/lock-frontend
and reconfigure dpkg
sudo dpkg --configure -a
sudo apt update
I'm trying to add TravisCI to my project, but I won't stop getting this error when triggering the builds:
WARNING: The following packages cannot be authenticated!
google-chrome-stable E: There were unauthenticated packages and -y was
used without --allow-unauthenticated apt-get.diagnostics apt-get
install failed The command "sudo -E apt-get -yq --no-install-suggests
--no-install-recommends $(travis_apt_get_options) install google-chrome-stable" failed and exited with 100 during .
I've searched for an answer and I found that adding chrome: stable in the addons section should fix it, but it's still failing. This is the .travis.yml file:
dist: trusty
sudo: false
language: node_js
node_js:
- "10"
addons:
chrome: stable
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
cache:
directories:
- ./node_modules
install:
- cd project/projectName
- npm install
script:
- npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
- npm run e2e -- --protractor-config=e2e/protractor-ci.conf.js
And this is the full log:
Worker information
0.17s0.01s0.00s0.01s
system_info
Build system information
0.00s0.00s6.03s0.00s4.23s0.00s1.26s
docker_mtu_and_registry_mirrors
docker stop/waiting
resolvconf
resolvconf stop/waiting
Adding APT Sources
0.16s$ curl -sSL "https://build.travis-ci.com/files/gpg/google-chrome.asc" | sudo -E apt-key add -
OK
0.01s$ echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee -a ${TRAVIS_ROOT}/etc/apt/sources.list >/dev/null
7.82s$ travis_apt_get_update
Installing APT Packages
0.50s$ sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install google-chrome-stable
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
indicator-application libappindicator1 libappindicator3-1 libdbusmenu-glib4
libdbusmenu-gtk3-4 libdbusmenu-gtk4 libindicator3-7 libindicator7
Use 'sudo apt autoremove' to remove them.
Recommended packages:
libu2f-udev libvulkan1
The following packages will be upgraded:
google-chrome-stable
1 upgraded, 0 newly installed, 0 to remove and 303 not upgraded.
Need to get 75.8 MB of archives.
After this operation, 59.1 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
google-chrome-stable
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
apt-get.diagnostics
apt-get install failed
The command "sudo -E apt-get -yq --no-install-suggests --no-install-recommends $(travis_apt_get_options) install google-chrome-stable" failed and exited with 100 during .
Your build has been stopped.
How could I fix this? Also, since the root folder (where the .travis.yml file is) isn't where the app is located (it is under root/project/projectName), I wrote - cd project/projectName before doing the -npm install, I don't know if thats the correct way of doing it, so I'd also like to check that.
Thanks!
i have private server i using SSH for access my server i have remove
VestaCP (i using http://vestacp.com/docs/#how-to-uninstall-vesta
method) i using UBUNTU 16.04 LTS
I try to clean up vestaCP with this method:
apt-get remove --purge nginx apache2 apache2-utils apache2.2-common apache2-suexec-custom libapache2-mod-ruid2 libapache2-mod-rpaf libapache2-mod-fcgid bind9 idn mysql-server mysql-common mysql-client php5-common php5-cgi php5-mysql php5-curl libapache2-mod-php5 vsftpd mc exim4 exim4-daemon-heavy clamav-daemon flex dovecot-imapd dovecot-pop3d phpMyAdmin awstats webalizer jwhois rssh git spamassassin roundcube roundcube-mysql roundcube-plugins sudo bc ftp lsof ntpdate rrdtool dnsutils vesta vesta-nginx vesta-php
Then i try to install the VestaCP as usual:
curl -O http://vestacp.com/pub/vst-install.sh; bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin yes --clamav yes --mysql yes --postgresql yes
But I have error at mysql-server-5.7 as:
mysql_upgrade failed with exit status 11 dpkg: error processing
package mysql-server-5.7
How to fix that?
The following is generic advice from VestaCP in their documentation:
// Perhaps try stopping mysql-server, apache2, and nginx as well, just incase they're holding up the uninstall. Also, can you post the output/errors if any?
Stop vesta service
service vesta stop
Remove vesta packages and software repository
RHEL/CentOS:
yum remove vesta* rm -f /etc/yum.repos.d/vesta.repo
Debian/Ubuntu:
apt-get remove vesta*
rm -f /etc/apt/sources.list.d/vesta.list
Delete data directory and cron
rm -rf /usr/local/vesta
Honestly, if you're at a point where you can purge all these files, it's probably easier to reinstall your operating system. Failing that, get another VPS(Virtual Private Server) on the go.Install Vesta on the new server, apply any backups of your website(s) and database(s), and then install/setup any services (other than Vesta) you had running on the current server.
If that is completely out of the question, you can find out exactly which packages it installs depending on which version and linux distribution you use. For example the click here for the Ubuntu version.
Just underneath if [ "$release" = '16.04' ]; then is the block of software that the script apt-get installs.
Try using --force with your install command or reinstall ubuntu
Doenloaded the .deb package of Chrome from Google's site. The installation doesn't work when trying to install from the GUI. What's up with that?
Its very simple to install google chrome on ubuntu . Type the following commands in the terminal
Step 1 : Download the latest Google Chrome .deb package with wget:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Step 2 : Install the Google Chrome .deb package
sudo apt install ./google-chrome-stable_current_amd64.deb
Hope this helps!
Google Chrome requires some missing dependencies as can be seen when trying to install from the terminal using dpkg -i. Prior to installing Chrome, run:
sudo apt-get install libindicator7 libappindicator1
After that, Chrome installation works fine.
Update the packages first in Ubuntu by below command.
$ sudo apt-get update
Install Required Dependices for Google Chrome as shown below.
$ sudo apt-get install libnss3-1d libxss1 libgconf2-4 libappindicator1 libindicator7
Download the Google Chrome command using below command.
$ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
still during installation if you get some error that some dependency is not installed run the below command and it will install all required dependencies.
$ sudo apt-get -f install
Now let's go ahead and install Google Chrome by below command.
$ sudo dpkg -i google-chrome-stable_current_amd64.deb
And its done....
To open it just run below command command
$ google-chrome
You can download the latest package of chrome here
Install the package by clicking on it, or via the terminal:
sudo dpkg -i google-chrome-stable_current_amd64.deb
If you have issues, you may have to run:
sudo apt-get -f install
sudo dpkg -i google-chrome-stable_current_amd64.deb
Alternatively you can use gdebi to install the .deb packages.
It's a lightweight application that is better at installing .deb packages, and is quicker as well. If there are dependencies, it notifies that as well.
To install it type this in the terminal:
sudo apt install gdebi
Once done you can right click on .deb file and select to open it with Gdeb
I face so many issue to install google chrome on Ubuntu 16.04.
finalyl, I successfully install google chrome on ubuntu by following commands:
Step 1: $sudo apt-get install gdebi
Step 2: wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Step 3: In same directory where you have download package or give path in command
$sudo gdebi google-chrome-stable_current_amd64.deb
installed chrome successfully.
I had same issue. on running google-chrome from terminal, found that it need new version of NSS. Chrome 62 need NSS>=3.26. So installed libnss3.
$google-chrome
[6999:7036:1113/200616.549496:FATAL:nss_util.cc(632)] NSS_VersionCheck("3.26") failed. NSS >= 3.26 is required. Please upgrade to the latest NSS, and if you still get this error, contact your distribution maintainer.
Aborted (core dumped)
sudo apt-get install --reinstall libnss3
and it worked for me :)
I would like to install MySql 5.7 on Debian 7 Wheezy. I put :
deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.7
in file:
/etc/apt/sources.list.d/mysql.list
Next I run commands:
sudo apt-get update
sudo apt-get upgrade
And tried install package:
sudo apt-get install mysql-server-5.7
I got an error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'mysql-community-server' instead of 'mysql-server-5.7'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mysql-community-server : Depends: mysql-common (= 5.7.11-1debian7) but 5.5.47-0+deb7u1 is to be installed
Depends: mysql-client (= 5.7.11-1debian7)
E: Unable to correct problems, you have held broken packages.
Do you have any ideas to resolve this problem?
I also tried:
Note, selecting 'mysql-community-server' instead of 'mysql-server-5.7'
But it's not the solution of the problem.
I stumbled upon this post and can confirm simply changing the priority of your cache by downloading the .deb package directly from MySQL Downloads
Using the command line:
$ cd /usr/src && sudo wget http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
Please note: by convension the /src directory on linux exists for source code to live before being compiled - I believe the deb package above therefore belongs here.
This works for Debian/Wheezy.
$ sudo dpkg -i http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
Once this you have gone through the steps, you simply hit Ok, and then proceed to install mysql-server like normal:
$ sudo apt-update
$ sudo apt-get install mysql-server
For me, this resulted in the following:
[info] MySQL Community Server 5.7.14 is started.
Setting up mysql-server (5.7.14-1debian7) ...
Further reading, if you ever want to remove this package, you can do so:
$ cd /usr/src && sudo dpkg --remove http://dev.mysql.com/get/mysql-apt-config_0.7.3-1_all.deb
As of 2020 with Debian Wheezy 7.11 the answer doesn't work anymore. I had to change a few things and thought it might be useful to share the result:
Install mysql-apt-config_0.8.10-1_all.deb (Version 0.8.15-1_all won't work: dpkg can't handle the "control.tar.xz" it contains.)
cd /usr/src
sudo wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb
This will create the necessary /etc/apt/sources.list.d/mysql.list file.
sudo apt-get update
sudo apt-get install mysql-server
Thanks goes to David Kehr from where I got the working mysql-apt-config version.
You don't need to specify the version in the apt-get command, just type :
sudo apt-get install mysql-server
After the install, you can type the following command to check mysql version
aptitude show mysql-server
On my machine I have the following result :
...
VersionĀ : 5.7.13-1debian7
...