how to run apt installed spyder - spyder

Since I also tried conda installed spyder (which didn't work), now when I run spyder the following error showed up even when I already have apt installed spyder:
(base) zeyu#ZYNitro5:~$ sudo apt install spyder
Reading package lists... Done
Building dependency tree
Reading state information... Done
spyder is already the newest version (3.3.6+dfsg1-4build1).
The following package was automatically installed and is no longer required:
libfwupdplugin1
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(base) zeyu#ZYNitro5:~$ spyder
-bash: /home/zeyu/anaconda3/bin/spyder: No such file or directory
how can I run apt installed spyder now?

Related

Unable to install Phusion Passenger on Ubuntu Server 18.04

Running on a fresh install of Ubuntu Server 18.04 on Virtualbox, Windows 10 as the host OS. Ran the instructions on the Phusion Passenger site here
This is the error I'm getting:
steve#heartypet-staging:~$ sudo apt-get install -y libnginx-mod-http-passenger
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:
libnginx-mod-http-passenger : Depends: passenger (= 1:5.3.4-1~bionic1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Oddly enough, the exact same instructions work fine on the desktop version.
Get default source list from here
https://askubuntu.com/a/1036749
Replace /etc/apt/source.list with the file in the link above.
Then sudo apt update and sudo apt upgrade
And go ahead...
If you having problems with the previous solution, one option is run this command:
sudo nano /etc/apt/sources.list.d/passenger.list
and comment all the lines in this file, then run the command
sudo apt-get install passenger

how can i install rmagick on ubuntu 17.04

Installing rmagick on Ubuntu
there are solutions for different versions of ubuntu, but none worked on 17.04 ?
sudo apt-get install libmagickwand-dev gives
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:
libmagickwand-dev : Depends: imagemagick-6-common (= 8:6.9.7.4+dfsg-3ubuntu1) but 8:6.9.7.4+dfsg-3ubuntu1.2 is to be installed
Depends: libmagickwand-6.q16-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Couldn't find any solution for this. Updated to Ubuntu to 17.10, where it works fine.
You can search for any packages in ubuntu doing a sudo apt-cache search libmagickwand-dev and if you find the package you are looking for then install it doing sudo apt-get install libmagickwand-dev,
Installing all the unmet dependencies should fix the problem, and it is always helpful to do the commands below to upgrade any missing packages
sudo apt-get upgrade && sudo apt-get update
You should be able to install rmagick without any issues after this.

Cannot install artoolkit 6

While trying to install artoolkit 6 on my ubuntu I get multiple errors.
First I tried installing artoolkit6-dev_6.0.2_amd64.deb which gave an error complaining not installed package artoolkit6-lib then I tried below.
sudo dpkg -i artoolkit6-lib_6.0.2_amd64.deb
Selecting previously unselected package artoolkit6-lib.
(Reading database ... 286474 files and directories currently installed.)
Preparing to unpack artoolkit6-lib_6.0.2_amd64.deb ...
Unpacking artoolkit6-lib (6.0.2) ...
dpkg: dependency problems prevent configuration of artoolkit6-lib:
artoolkit6-lib depends on libgoogle-glog0v5; however:
Package libgoogle-glog0v5 is not installed.
dpkg: error processing package artoolkit6-lib (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
artoolkit6-lib
But I cannot find libgoogle0v5 anywhere to install.
Where can I find this package ?
My machine info:
Linux xxxxx-ThinkPad-T410 3.19.0-84-generic #92-Ubuntu SMP Fri Mar 24 15:46:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
I ran into the same behavior ...
It seems that libgoogle-glog0v5 is a logger at application level.
I found a DL link here:
https://pkgs.org/download/libgoogle-glog0v5
Additionally I had to install the libgflags2v5 package, because the .deb file for libgoogle was missing that dependency.
https://packages.debian.org/stretch/libgflags2v5
Installation Process:
libgflags2v5
The installation via Ubuntu softwarecenter failed, but worked in a
terminal window:
sudo dpkg -i libgflags2v5_2.1.2-4_amd64.deb
libgoogle-glog0v5
sudo - libgoogle-glog0v5_0.3.4-0.1_amd64.deb
artoolkit6-lib
sudo dpkg -i artoolkit6-lib_6.0.2_amd64.deb
artoolkit6-dev
sudo dpkg -i artoolkit6-dev_6.0.2_amd64.deb
for installing the examples folder of ARToolkit 6 I also had to install
sudo dpkg -i libgflags2v5_2.1.2-4_amd64.deb
... and some others more. just follow the names of the missing dependency packages and install them.
sudo apt-get install libsndio6.1
sudo apt-get install x11proto-video-dev
libsdl2-2.0-0: Simple DirectMedia Layer:
sudo apt-get install libsdl2-2.0-0
sudo dpkg -i libsdl2-dev.deb
sudo dpkg -i artoolkit6-examples_6.0.2_amd64
finally the installation of the artoolkit6 samples is finished.
Description: Ubuntu 16.04.2 LTS
I hope this helps!

Missing dependency for hdf5: totem

while installing the following command I get the error as shown below
parag#parag:~/torch-hdf5$ sudo luarocks make hdf5-0-0.rockspec LIBHDF5_LIBDIR="/usr/lib/x86_64-linux-gnu/"
Missing dependencies for hdf5:
totem
Error: Could not satisfy dependency: totem
Totem is already installed.
parag#parag:~$ sudo apt-get install totem
[sudo] password for parag:
Reading package lists... Done
Building dependency tree
Reading state information... Done
totem is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 102 not upgraded.
parag#parag:~$
What I should do now?
Future someone, the following two lines helped me solve the issue:
wget https://raw.githubusercontent.com/deepmind/torch-totem/master/rocks/totem-0-0.rockspec
sudo luarocks install totem-0-0.rockspec
You may have to restart your system to get it working!

Ruby on Rails and SSL error

I formatted my computer and transferred all my RoR applications to my new Lubuntu System.
I had Ubuntu with Unity. (still a linux system). I have installed rvm, ruby, rails, and they all work fine! I then run "bundle install" before actually running "rails s" to test my app.
This is what I get
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks!
/home/user/.rvm/rubies/ruby-1.9.2-p318/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': no such file to load -- openssl (LoadError)
Any help ?
This is what sudo apt-get install openssl gives me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.
The following packages were automatically installed and are no longer required:
libreadline-gplv2-dev git-man libncurses5-dev libnspr4-0d libtinfo-dev git libreadline5 zlib1g-dev liberror-perl libsqlite3-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Did you install the packages before installing the ruby version with RVM?
Try removing the ruby version, running
sudo apt-get install libssl-dev openssl
and then install ruby version again

Resources