I am getting the following error while installing the fresh ruby 2.0.0-p648 through rvm
$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/14.04/x86_64/ruby-2.0.0-p648.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system..bob password required for 'apt-get --quiet --yes update':
...........
Installing required packages: libgmp-dev....
Error running 'requirements_debian_libs_install libgmp-dev',
showing last 15 lines of /home/rank/.rvm/log/1467783851_ruby-2.0.0-p648/package_install_libgmp-dev.log
++ sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install libgmp-dev'\'': ' apt-get --no-install-recommends --yes install libgmp-dev
Reading package lists...
Building dependency tree...
Reading state information...
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:
libgmp-dev : Depends: libgmp10 (= 2:5.0.2+dfsg-2ubuntu1) but 2:5.1.3+dfsg-1ubuntu1 is to be installed
E: Unable to correct problems, you have held broken packages.
++ return 100
++ return 100
Requirements installation failed with status: 100.
Please help
Related
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.
My apt-get is totally broken and can't install anything. The output of 'apt-get install -f" is as follows:
# apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
gnome-icon-theme : Depends: gtk-update-icon-cache
python3-cairo : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
python3-gdbm : Depends: python3 (>= 3.6) but 3.4.3-1 is installed
python3-reportlab-accel : Depends: python3 (>= 3.6~) but 3.4.3-1 is installed
rhythmbox : Depends: rhythmbox-data (= 3.1-1ubuntu3) but 3.4.1-2ubuntu5 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
The output of 'sudo apt install python3' is in the picture:https://imgur.com/a/IbGK0
I have Googled any possible questions and tried any possible solutions but NO ONE worked for it.
Go to /var/log/dist-upgrade/apt.log and identify the packages that are broken. "apt-get remove" the packages, do release upgrade and then you should be able to reinstall them.
You can find more information here: https://askubuntu.com/questions/124845/eerror-pkgproblemresolverresolve-generated-breaks-this-may-be-caused-by-hel
This command resolved my error
sudo apt -f install
In my case I was behind a proxy, so I needed to run the following command:
sudo nano /etc/apt/apt.conf
And added the following lines:
Acquire::http::proxy "http://<user>:<password>#<proxy_host>:<proxy_port>/";
Acquire::https::proxy "https://<user>:<password>#<proxy_host>:<proxy_port>/";
Acquire::ftp::proxy "ftp://<user>:<password>#<proxy_host>:<proxy_port>/";
I am trying to install Phonetisaurus (using the Jasper installation instructions here). Unfortunatly I've run into a dependency issue I haven't been able to solve.
When I run the command sudo apt-get -t experimental install phonetisaurus m2m-aligner mitlm libfst-tools I get the following output:
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:
m2m-aligner : Depends: libstdc++6 (>=5.2) but 4.9.2-10 is to be installed
mitlm : Depends libmitlm0 (= 0.4.1-2) but it is not going to be installed
Depends: libstdc++6 (>=5.2) but 4.9.2-10 is to be installed
phonetisaurus : Depends: libfst4 (>=1.5.3+r3) but it is not installable
Depends: libstdc++6 (>=5.2) but 4.9.2-10 is to be installed
Attempting to install libstdc++6 directly (either with sudo apt-get install libstdc++6 or sudo apt-get -f libstdc++6) leaves me with:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libstdc++6 is already the newest version.
The following packages were automatically installed and are no longer required:
libboost-atomic1.55.0 libboost-filesystem1.55.0
libboost-program-options1.55.0 libboost-regex1.55.0 libboost-thread1.55.0
libcwiid1 libfftw3-single3 libjs-prettify libqscintilla2-11
libqscintilla2-l10n libqt4-network libqt4-xmlpatterns libqtwebkit4
libruby1.9.1 libruby1.9.1-dbg libscsynth1 libtcltk-ruby1.9.1 ri1.9.1
ruby1.9.1 ruby1.9.1-dev ruby1.9.1-examples ruby1.9.1-full ruby1.9.3
supercollider supercollider-common supercollider-ide supercollider-language
supercollider-server supercollider-supernova
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.
Attempting to install libfst4 gives me:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libfst4 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
E: Package 'libfst4' has no installation candidate
And attempting to install libmitlm0 gives me:
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:
libmitlm0 : Depends: libstdc++6 (>= 5.2) but 4.9.2-10 is to be installed
E: Unable to correct problems, you have held broken packages.
I feel like there is something I'm missing here but after a day of messing around with it I still can't figure it out. Any help/insight would be appreciated.
Thanks G10DRAS for providing the link.
This solution worked for me. First, I downloaded these files
sudo wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phonetisaurus/is2013-conversion.tgz
sudo wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.3.4.tar.gz
Then, untared the files
tar -xvf is2013-conversion.tgz
tar -xvf openfst-1.3.4.tar.gz
Finally, following next steps at: http://jasperproject.github.io/documentation/installation
i want to install Openjdk but i get this error :
root#debian~# apt-get install openjdk-7-jdk
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:
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u75-2.5.4-1~deb7u1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
i try this commands by my issue still not solved :
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
how should i fix this ?
try
sudo apt-get install tzdata=2014j-0wheezy1
sudo apt-get install openjdk-7-jdk
I'm trying to install passenger:
gem1.8 install passenger
But i'm getting the error:
Building native extensions. This could take a while... ERROR: Error
installing passenger: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb extconf.rb:8:in `require': no such
file to load -- mkmf (LoadError) from extconf.rb:8
Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection. Results
logged to
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out
So Now i've been told to install ruby1.8-dev but i have
a dependency:
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:
ruby1.8-dev : Depends: libc6-dev but it is not going to be installed
E: Broken packages
So i tried to install them both and got:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.7-18lenny7) but 2.11.2-10 is to be installed
So finally i tried to install issuing the command:
apt-get install ruby1.8-dev libc6-dev libc6
But i get the same error. I also tried with "apt-get -f"
What do i need to do?
I think you might be missing this:
sudo apt-get install build-essential