why opensuse install ruby 2.1 while installing 2.4 - ruby

Opensuse Leap 42.2
trying to install ruby-2.4
zypper in ruby2.4
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following 4 NEW packages are going to be installed:
ruby2.1 ruby2.1-rubygem-gem2rpm ruby2.4 ruby-common
The following recommended package was automatically selected:
ruby2.1-rubygem-gem2rpm
4 new packages to install.
Overall download size: 521.0 KiB. Already cached: 0 B. After the
operation, additional 1.5 MiB will be used.
Continue? [y/n/...? shows all options] (y):
Why system wants to install an old version with a new one?

Related

How to fix apt package contamination?

I have a linux distro "Pop_OS" installation that is contaminated by ubuntu. Specifically, its audio driver is broken.
When I try to use aptitude to force install "pulseaudio", it demonstrates the simple situation:
$ sudo aptitude install pulseaudio
The following NEW packages will be installed:
pulseaudio
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 913 kB of archives. After unpacking 4,674 kB will be used.
The following packages have unmet dependencies:
pop-desktop : Conflicts: pulseaudio but 1:15.99.1+dfsg1-1ubuntu2 is to be installed
Conflicts: pulseaudio:i386 but it is not going to be installed
pipewire-alsa : Conflicts: pulseaudio but 1:15.99.1+dfsg1-1ubuntu2 is to be installed
Conflicts: pulseaudio:i386 but it is not going to be installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) pulseaudio [Not Installed]
Accept this solution? [Y/n/q/?] n
*** No more solutions available ***
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) pulseaudio [Not Installed]
Obviously, the easy solution would be to uninstall pulseaudio but 1:15.99.1+dfsg1-1ubuntu2 (which cannot be found in upstream), and resolve the conflict. But aptitude shows that "*** No more solutions available ***"
So, why is aptitude so incapable of resolving such a simple conflict? And what tool is smart enough to do that?

Nativescript TNS run ios Mac mini (M1) : WARNING: There was a problem with CocoaPods

I really don't know what I should I do now so I can build a Nativescript ios app on Mac Mini (M1). I have been going through all the threads on SOF and have done the following:
followed homebrew instructions (https://docs.nativescript.org/environment-setup.html#macos-ios)
installed cocoapods
pod setup (Ok)
pod version (Ok)
But when I do the tns run ios I get the error below.
I have tried installing cocoapods using Terminal in Rosetta mode as well yet no avail.
I had everything working on Mac Mini 2014 machine running Big Sur but Mac mini M1 it just does not like it.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 12.5.1 satisfies minimum required version 10.
✖ WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
Your environment is not configured properly and you will not be able to execute local builds.
Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.
Select "Skip Step and Configure Manually" to disregard this option and install any required components manually.
? To continue, choose one of the following options: › - Use arrow-keys. Return to submit.
❯ Configure for Local Builds
Skip Step and Configure Manually
When I choose the Configure for Local Builds I get teh following log:
Step 5 of 11:
Installing CocoaPods... This might take some time, please, be patient.
Successfully installed cocoapods-1.10.2
Parsing documentation for cocoapods-1.10.2
Done installing documentation for cocoapods after 0 seconds
1 gem installed
Step 6 of 11:
Setup CocoaPods... This might take some time, please, be patient.
Setup completed
Step 7 of 11:
Installing pip... This might take some time, please, be patient.
Searching for pip
Best match: pip 20.3.3
Processing pip-20.3.3-py2.7.egg
pip 20.3.3 is already the active version in easy-install.pth
Installing pip script to /usr/local/bin
Installing pip3.8 script to /usr/local/bin
Installing pip3 script to /usr/local/bin
Using /Library/Python/2.7/site-packages/pip-20.3.3-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
Step 8 of 11:
Installing 'six' python package... This might take some time, please, be patient.
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: six in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (1.12.0)
Step 9 of 11:
Installing xcodeproj... This might take some time, please, be patient.
Successfully installed xcodeproj-1.21.0
Parsing documentation for xcodeproj-1.21.0
Done installing documentation for xcodeproj after 0 seconds
1 gem installed
The ANDROID_HOME and JAVA_HOME environment variables have been added to your .bash_profile/.zprofile
Restart the terminal or run `source ~/.bash_profile` to use them.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ The Python 'six' package is found.
✔ Xcode version 12.5.1 satisfies minimum required version 10.
✖ WARNING: There was a problem with CocoaPods
Verify that CocoaPods are configured properly.
The setup script was not able to configure your environment for local builds. To execute local builds, you have to set up your environment manually. Please consult our setup instructions here 'https://docs.nativescript.org/start/quick-setup'.
For M1 machines it's recoomened to install rosetta2
softwareupdate --install-rosetta
May need to install ffi
sudo arch -x86_64 gem install ffi
Then from project/platforms/ios folder
arch -x86_64 pod install

Ruby installation with rbenv fails on WSL2 with openssl/openyaml error

I'm trying to install Ruby in Windows using Windows Linux Subsystem and rbenv following these instructions.
$ rbenv install 3.0.1
Downloading ruby-3.0.1.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.1.tar.gz
Installing ruby-3.0.1...
BUILD FAILED (Ubuntu 20.04 using ruby-build 20210423)
Inspect or clean up the working tree at /tmp/ruby-build.20210428105920.7360.VTYCTG
Results logged to /tmp/ruby-build.20210428105920.7360.log
Last 10 log lines:
To eliminate this warning, please install libyaml and reinstall your ruby.
The Ruby yaml extension was not compiled.
ERROR: Ruby install aborted due to missing extensions
Try running `apt-get install -y libssl-dev libyaml-dev` to fetch missing dependencies.
Configure options used:
--prefix=/home/skarcher/.rbenv/versions/3.0.1
--enable-shared
LDFLAGS=-L/home/skarcher/.rbenv/versions/3.0.1/lib
CPPFLAGS=-I/home/skarcher/.rbenv/versions/3.0.1/include
Nothing more helpful in the log -- it looks like most of the install is working and the error seems quite straightforward, but libssl-dev and libyaml-dev are installed:
$ sudo apt-get install -y libssl-dev libyaml-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libyaml-dev is already the newest version (0.2.2-1).
libssl-dev is already the newest version (1.1.1f-1ubuntu2.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I couldn't find any reference to this issue other than posts referring to rbenv on Mac OS with older ruby versions. Any help/thoughts much appreciated.

OpenVino on MacOS using Anaconda

How do you go about installing OpenVino using Anaconda. Will this be possible with prerequisites like OpenCV and CMake that are required for installation.
(IntelEnv) ChrNinja#ChrNinja demo % ./demo_squeezenet_download_convert_run.sh
target_precision = FP16
[setupvars.sh] OpenVINO environment initialized
###################################################
Downloading the Caffe model and the prototxt
Installing dependencies
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Processing /Users/christianh/Library/Caches/pip/wheels/a7/c1/ea/cf5bd31012e735dc1dfea3131a2d5eae7978b251083d6247bd/PyYAML-5.3.1-cp27-cp27m-macosx_10_15_x86_64.whl
Collecting requests
Using cached https://files.pythonhosted.org/packages/1a/70/1935c770cb3be6e3a8b78ced23d7e0f3b187f5cbfab4749523ed65d7c9b1/requests-2.23.0-py2.py3-none-any.whl
Collecting idna<3,>=2.5
Using cached https://files.pythonhosted.org/packages/89/e3/afebe61c546d18fb1709a61bee788254b40e736cff7271c7de5de2dc4128/idna-2.9-py2.py3-none-any.whl
Collecting chardet<4,>=3.0.2
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting certifi>=2017.4.17
Using cached https://files.pythonhosted.org/packages/57/2b/26e37a4b034800c960a00c4e1b3d9ca5d7014e983e6e729e33ea2f36426c/certifi-2020.4.5.1-py2.py3-none-any.whl
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached https://files.pythonhosted.org/packages/e1/e5/df302e8017440f111c11cc41a6b432838672f5a70aa29227bf58149dc72f/urllib3-1.25.9-py2.py3-none-any.whl
Installing collected packages: pyyaml, idna, chardet, certifi, urllib3, requests
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/PyYAML-5.3.1.dist-info'
Consider using the `--user` option or check the permissions.
Error on or near line 150; exiting with status 1
1. Update conda to latest version:
conda update --all
2. Install the Intel® Distribution of OpenVINO™ Toolkit:
conda install openvino-ie4py -c openvino
3. Install OpenCV. This is required to run a sample:
conda install opencv
4. Verify the package installed:
python -c “import openvino”

Aptitude has unmet dependencies and encounters a segmentation fault when performing the recommended fix. How do I fix it?

I am on Ubuntu 17.10, freshly installed and tried to installed Ruby using apt-get install ruby-full. It failed to install and now aptitude says
The following packages have unmet dependencies:
ri: Depends: ruby2.3-doc but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specifiy a solution).
I tried the suggested command as well as sudo apt-get install -f -y to no avail: It begins the install process then tells me there was an error processing the ruby2.3-doc archive
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
ruby2.3-doc
The following NEW packages will be installed:
ruby2.3-doc
0 upgraded, 1 newly installed, 0 to remove and 17 not upgraded.
21 not fully installed or removed.
Need to get 0 B/3,382 kB of archives.
After this operation, 27.7 MB of additional disk space will be used.
(Reading database ... 182724 files and directories currently installed.)
Preparing to unpack .../ruby2.3-doc_2.3.3-1ubuntu1_all.deb ...
Unpacking ruby2.3-doc (2.3.3-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/ruby2.3-doc_2.3.3-1ubuntu1_all.deb (--unpack):
unable to open '/usr/share/ri/2.3.0/system/page-ChangeLog-2_1_0.ri.dpkg->new': Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/ruby2.3-doc_2.3.3-1ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I tried clearing aptitude's cache in case a package failed to download correctly but that did not fix it.
Because this means there are unmet dependencies, I'm unable to run other aptitude operations to try and install new packages or remove ruby-full.
How can I remove this ruby-full package so I can try again using rvm?
I ended up removing ri, ruby-full, and the other packages mentioned then ran apt-get update.

Resources