How do I remove broken packages from Ubuntu while trying to install unity tweak tool - terminal

sudo apt-get install unity-tweak-tool
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
unity-tweak-tool : Depends: unity-webapps-common but it is not going
to be installed
E: Unable to correct problems, you have held broken packages.
When I try to run the command at the top it gives me this. I've tried autoclean among many other things. Does anybody have any ideas?

Related

"installation of package ‘tidyverse’ had non-zero exit status" on MacOS

I mostly work in Python to do data analysis, but am trying to learn R stats as well. Python, Pandas, etc are installed via Anaconda on my Mac laptop.
Today I downloaded R Studio onto my laptop, and tried running install.packages("tidyverse") to get started in R. I ran into this error:
ERROR: dependencies ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
After Googling for a while I came across a few instances of this exact or similar issue. However, the solutions are not for Mac, e.g.,
sudo apt install libcurl4-openssl-dev libssl-dev libxml2-dev
It turns out Anaconda has already installed libcurl, libxml2 and openssl for me. Is there a way to get Rstudio to ... "look" (?) ... for the compiled libraries it needs where Anaconda has installed them?
If you know where the libraries are (say /my/lib/path) then you could use withr::with_makevars to supplement the library search path. Something like
library(withr)
with_makevars(c(PKG_LIBS="-L/my/lib/path"), install.packages("tidyverse"), assignment="+=")
Personally, I would try to limit this to only the specific packages in tidyverse that are failing, and not the whole umbrella package.

Unable to install quickly in Ubuntu 18.04

Installing quickly on Ubuntu 18.04
$ sudo apt-get install quickly quickly-ubuntu-template
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package quickly-ubuntu-template
Build new apps quickly - is not found in the Ubuntu Software Center also.
How can I now install quickly?
I'm afraid after Ubuntu 14.04 Quickly is no longer available for download but you could use illumination software creator from :
https://github.com/jsebean/IlluminationSoftwareCreator
but i haven't found how to install it yet...

Error: unable to locate package libpam-google-authenticator

I'm having trouble setting up 2 factor authentication in Ubuntu Server 18.04.
I'm following this tutorial: http://www.ubuntuboss.com/how-to-set-up-2-factor-authentication-in-ubuntu-server-18-04/
But on the first step when I try to install the package I get the package not found error as seen in the title.
sudo apt-get install libpam-google-authenticator
I have looked around to see if the package has been updated and goes by a different name and I am sure I have the most recent version of the package manager.
Has the package changed or is there anyway around this problem.
Had the same problem. Turned out it's because Ubuntu Server doesn't include the Universe Repository.
Add this line
sudo add-apt-repository universe
Then run the command again and it will install.
I found a way round this issue,
/tmp$ wget http://launchpadlibrarian.net/326531917/libpam-google-authenticator_20170702-1_amd64.deb
I was able to manually install it via this link and installed the missing dependencies the same way and was able to finish the tutorial as normal.

Install a linux package on heroku

I need to install this package on heroku
apt-get install python3-tk
Can someone tell me how can I install this? I tried above command but I get this message
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3-tk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Package 'python3-tk' has no installation candidate
Installing apt packages requires sudo, which heroku doesn't allow you to do with slugs.
You can use this buildpack: https://github.com/heroku/heroku-buildpack-apt
Or you can use the heroku docker support to push docker images. Those images won't allow you sudo either. But you will be able to use sudo when building them.
See https://devcenter.heroku.com/articles/container-registry-and-runtime
If you still want to use buildpacks with docker and an easier way to install packages, there is also heroku.yml in developer preview:
https://devcenter.heroku.com/articles/heroku-yml-build-manifest

Installing TeamViewer 13 on Debian requires many dependencies

I'm trying to install TeamViewer by going to their website and downloading the latest version. However, when I open a terminal, navigate to the folder, and enter
sudo dpkg -i teamviewer_13.0.6634_amd64.deb
I get a message that certain dependencies are missing, including qtdeclarative5-qtquick2-plugin. I then installed that, re-ran the install, and there are many other missing dependencies, so I try to just run
sudo apt install qtdeclarative5-*
and this tells me that several dependencies from qml are needed, so I run
sudo apt install qml-module-*
and this again tells me I first need other missing dependencies, and at this point I feel like I am in an endless maze. Is there any efficient way of getting the dependencies that I need? Or am I supposed to be doing something completely different to install TeamViewer? I'm running Linux Mint 18.3 Cinnamon.
Why not use VNC?
This is a question more relevant for ServerFault, Stack Overflow's sister site for IT.

Resources