Recently, I tried to download the Google Chrome in Ubuntu. But I couldn't installed it correctly. Now I am getting a red minus sign in upper right corner, stating that I have unmet dependencies. I tried to run the following command:
apt-get install -f
I got this output:
E: Could not open lock file /var/lib/dpkg/lock - -open(13: Permission denied)
E:Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Please help. I am new to Ubuntu. so please explain what exactly I did wrong initially, and what is this all about?
The error you are getting is common for one of two reasons:
You didn't run the command as root (should be sudo apt-get install -f google-chrome)
You have an updater open somewhere else (hence the lock).
I would try the command above with all other programs closed if that doesn't work see this post on the Ubuntu SO (which is where you should post your Ubuntu questions from now on, BTW) on how to install Google Chrome.
Good luck!
Related
I'm trying to create an android apk file that I can run on my phone using buildozer and kivy. Unfortunately, whenever I run the command buildozer -v android debug, the command prompt returns the error Aidl not found, please install it.
I've already tried to simply do sudo apt-get aidl followed by sudo apt-get update, but that still results in the same error.
Also, I'm not sure if this is relevant to the issue, but when I open up the file explorer on the ubuntu 16.04 virtual machine, there is a slight "x" on the root folder and it says that I don't have access to open it.
Here is the buildozer.spec file, through I'n note sure if the contents of it are important with this specific error
https://docs.google.com/document/d/1UAHekPUatAOrdIU_zFRwoPWgQKd-d0L3QsRXOr2Lo4Q/edit?usp=sharing
Help and suggestions would greatly be appreciated. Thanks!
Note: The reason why I am asking this question is due to the fact that the answer given in Why does Buildozer show `# Aidl not found, please install it.` even after I installed it? is out of date
Aidl not found, please install it.
Buildozer didn’t install a necessary package
~/.buildozer/android/platform/android-sdk/tools/bin/sdkmanager "build-tools;29.0.0"
Then press “y” then enter to accept the license.
mysqlclient is not installing in centos 7 and I attached the image where errors are shown so that you take idea from that. Your help is very appreciable for me.
Edit1 : #Jose
I tried your steps but at the very first step I get the following error:
Error downloading packages:
mysql-community-devel-5.6.36-2.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
mysql-community-libs-5.6.36-2.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
mysql-community-common-5.6.36-2.el7.x86_64: [Errno 5] [Errno 2] No such file or directory
Please tell me why?
ok, let's check possible issues step by step. The problem could be related to connectivity issues, broken packages, a broken rpm repository, or a problem with the mirrors used to download packages. Here are the things to look for:
So first thing we need to check is whether the internet connection is working fine. I'm not convinced this is the real issue, since based your comments it seems you were actually able to other packages, but you never know. Try pinging the DNS server for Google (ping 8.8.8.8) or curling the google website (curl www.google.com). If those things work, move on to the next step, otherwise we need to troubleshoot network service configuration.
If the internet connection is working fine, we need to investigate broken packages:
Run the following commands to clear up your yum cache: sudo yum clean all, sudo yum clean headers, and sudo yum-complete-transaction, then try to install your package again. If still doesn't work, move on to the next step.
Can yum tell us about problem with certain packages? Run package-cleanup --problems. If it shows problems, please update your question with the report. Otherwise move on the the next step.
It's possible that some installation you made in the past made things go wrong. Do yum history and see if you can spot the step where everything went wrong, and use the ID to remove that step by running sudo yum history undo <ID>. Try installing your package now. If that doesn't work, move on to the next step.
Try reinstalling all packages: sudo yum reinstall \*. If that works, try to install your package now, otherwise paste the error in your question.
If all of your packages are fine, we need to investigate issues with rpm.
Try rebuilding your rpm database: sudo rpm --rebuilddb and then try to install again your package.
Please let me know if none of this works, and I'll update the answer.
I'm trying to install haskell-platform on my Windows 10 linux subsystem, but just installing it throws a ton of errors. I tried this, according to the haskell site:
$ sudo apt-get install haskell-platform
And it threw more than my terminal saved, and this at the end.
Errors were encountered while processing:
ghc
libghc-text-dev
libghc-attoparsec-dev
libghc-hunit-dev
ghc-haddock
libghc-stm-dev
libghc-async-dev
libghc-hashable-dev
libghc-case-insensitive-dev
libghc-extensible-exceptions-dev
libghc-transformers-dev
libghc-mtl-dev
libghc-monadcatchio-mtl-dev
libghc-parsec3-dev
libghc-network-dev
libghc-xhtml-dev
libghc-cgi-dev
libghc-fgl-dev
libghc-openglraw-dev
libghc-gluraw-dev
libghc-opengl-dev
libghc-glut-dev
libghc-syb-dev
libghc-haskell-src-dev
libghc-html-dev
libghc-http-dev
libghc-parallel-dev
libghc-primitive-dev
libghc-random-dev
libghc-quickcheck2-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried to apt-get remove, but it threw errors and didn't complete that, either. Is there a safe way to start over and try again? Has anyone else encountered this kind of problem?
The issue is that timer_create is not implemented on your current build of the Windows Linux subsystem, aka WSL. If you have a recent OS, you can uninstall your current WSL and reinstall it. This will only work if your Windows version is 64-bit and build 1607 or later. You can find the build number from Start menu Settings, then select System -> About
Use the following commands from a command shell (not bash shell) to uninstall and reinstall. IMPORTANT: Back up your Linux files before running these commands as this deletes all of them.
lxrun /uninstall /full /y
lxrun /install /y
Once the install is complete you can open a Windows command prompt and update WSL with:
lxrun /update
Once you've re-installed and updated, you can sudo apt-get update and sudo apt-get upgrade from the within bash shell.
This worked on one of my computers, but not the other. Not sure why. If it does not work, you can get the latest WSL distro by joining the Insiders Build; instructions here.
Useful Links
Windows help on lxrun.
Instructions on WSL installation.
I am back here again with one more issue that I am having installing PhpStorm on my Ubuntu 14.04. To do so I followed the following steps:
Step 1. sudo apt-get purge openjdk* which gave me a long list mostly saying Package is not installed, so not removed. A few examples:
Package 'openjdk-7-dbg' is not installed, so not removed
Package 'openjdk-7-doc' is not installed, so not removed
...
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Step 2: sudo add-apt-repository ppa:webupd8team/java which ended up saying this:
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:
oracle-java7-set-default : Depends: oracle-java7-installer but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Step 3: Despite those error messages popped up I went ahead and ran sudo apt-get update which executed OK.
Step 4: Tried to run sudo apt-get install oracle-java7-installer which again popped up a lot of negative remarks!
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:
oracle-java7-installer : Depends: java-common (>= 0.24) but it is not installable
Recommends: gsfonts-x11 but it is not installable
E: Unable to correct problems, you have held broken packages.
So I did not go further with rest of the following commands:
sudo apt-get install oracle-java7-set-default
wget http://download-cf.jetbrains.com/webide/PhpStorm-7.1.3.tar.gz
tar -xvf PhpStorm-7.1.3.tar.gz
cd PhpStorm-133.982/bin
./phpstorm.sh
I have no idea what is going wrong! Somebody please help this absolute newbie to install it.
On another note, if PhpStorm fails to install somehow on my PC, please suggest me a good software which runs on Ubuntu with an inbuilt SASS compiler so that I do not have to run a command every time from terminal? And it would be even better if that software I can get for free! PhpStorm is only a 30-day trial.
EDIT
Strange, I'm using PhpStarm on Ubuntu 14.04 and ant works fine. IntelliJ IDEs are really great.
I have these Java from the same repo you are using.
java-common-0.51
java-wrappers-0.1.27
oracle-java7-installer-7u80+7u60arm-0~webupd8~1
Let's try to purge all the Java packages from you system and then install the Oracle Java again.
Use dpkg -l | grep java to discover all the installed java-related packages.
Then, use apt-get purge on all of them.
Skip the javascipt packages of course.
Then, try to install oracle-java7-installer again. I hope it will be installed correctly.
To install Phpstorm in Ubuntu just follow these steps
1.Run sudo apt install snapd
2.Then sudo snap install phpstorm --classic
3.Then type phpstorm in shell and press enter to launch Phpstorm
Read more about these here
Upgraded dist, no problem, although lost xbmc, found documentation saying to include additional source for xbmc as install wasn't working.
installed xbmc not realising it's completely replaced/up/down graded dist.
Needless to say I've lost gnome and samba config has been modified. i can fix after i get desktop back, packages are still there but no longer referenced.
when i try an apt-get install gnome i get a lot of message about Dependants and how they're not going to be installed.
any help appreciated.
Try sudo aptitude install gnome-desktop-environment, review solution and do not accept it until you're happy with what's going to be installed/removed.