Installation failure due to Linux dependent Library version issue: Libssl-dev version issue could not be installed: Libssl-dev: dependent: libssl1.0.0 (= 1.0.1-4ubuntu3) But 1.0.1-4ubuntu5.31 is about to be installed

Source: Internet
Author: User
Tags unpack aliyun

There are two installation failures that are caused by dependent library version issues:

1, because the source needs to be updated, the following actions:

Libssl-dev: dependent: libssl0.9.8 (= 0.9.8o-1ubuntu4) But 0.9.8o-1ubuntu4.4 is about to be installed workaround

Go to Settings, Update Manager, System Management, Systems Manager, select the Updates tab in the pop-up Software Sources dialog box, and check the four check boxes under Ubuntu update to turn off

Execute "sudo apt-get update" on the terminal first.

Transferred from: http://baalwolf.iteye.com/blog/1511259

2, using the Aptitude Package Manager to solve this dependency problem, aptitude is able to choose the appropriate version and matching software installation.

Libssl-dev version issue could not be installed: depends:libssl1.0.0 (= 1.0.1t-1+deb7u2) but 1.0.1t-1+deb8u6 was to be installed

Problem phenomenon:

Prompt for error when installing Libssl-dev:

  1. sudo apt-get install Libssl-dev
  2. Reading Package Lists ... Done
  3. Building Dependency Tree
  4. Reading state information ... Done
  5. Some packages could not be installed. this may mean.
  6. Requested an impossible situation or if you are using the unstable
  7. Distribution that some required packages has not yet been created
  8. or been moved out of Incoming.
  9. The following information to resolve the situation:
  10. The following packages has unmet dependencies:
  11. LIBSSL-DEV:DEPENDS:LIBSSL1. 0. 0 (= 1.0. 1t-1+deb7u2) but 1.0. 1t-1+deb8u6 was to be instal LED
  12. Recommends:libssl-doc but it isn't going to being installed
  13. E:unable to correct problems and you have held broken packages.

Workaround:

The Linux version dependency problem is very confusing, but we can solve this dependency problem by using the Aptitude Package Manager, aptitude is able to choose the appropriate version with matching software installation.

First install the Aptitude tool

sudo apt-get install aptitude

Then use aptitude to install Libssl-dev

sudo aptitude install libssl-dev
  1. The following NEW packages'll be installed:
  2. LIBSSL-DEV{B} Libssl-doc{a}
  3. 0 Packages upgraded, 2 newly installed, 0 to remove and no upgraded.
  4. Need to get 2,755 KB of archives. After unpacking 6,426 KB would be used.
  5. The following packages has unmet dependencies:
  6. LIBSSL-DEV:DEPENDS:LIBSSL1. 0. 0 (= 1.0. 1t-1+deb7u2) but 1.0. 1t-1+deb8u6 is installed.
  7. The following actions would resolve these dependencies:
  8. Keep the following packages at their current version:
  9. 1) Libssl-dev [not installed]
  10. Accept This solution? [y/n/q/?] N
  11. The following actions would resolve these dependencies:
  12. Downgrade the following packages:
  13. 1) libssl1. 0. 0 [1.0. 1t-1+deb8u6 (now), 1.0. 1t-1+deb7u2 (oldoldstable)]
  14. Accept This solution? [y/n/q/?] Y
  15. The following packages would be downgraded:
  16. LIBSSL1. 0. 0
  17. The following NEW packages'll be installed:
  18. Libssl-dev Libssl-doc{a}
  19. 0 Packages upgraded, 2 newly installed, 1 downgraded, 0 to remove and no upgraded.
  20. Need to get 3,825 KB of archives. After unpacking 6,420 KB would be used.
  21. Want to continue? [y/n/?] Y
  22. Get: 1 http://mirrors.aliyun.com/raspbian/raspbian/wheezy/main libssl1.0.0 armhf 1.0.1t-1+deb7u2 [1,070 KB]
  23. Get: 2 http://mirrors.aliyun.com/raspbian/raspbian/wheezy/main libssl-dev armhf 1.0.1t-1+deb7u2 [1,528 KB]
  24. Get: 3 http://mirrors.aliyun.com/raspbian/raspbian/wheezy/main libssl-doc all 1.0.1T-1+DEB7U2 [1,227 KB]
  25. Fetched 3,825 KB in 5s (753 kb/s)
  26. preconfiguring packages ...
  27. Dpkg:warning:downgrading libssl1. 0. 0:ARMHF from 1.0. 1t-1+deb8u6 to 1.0. 1t-1+DEB7U2
  28. (Reading database ... 115760 files and directories currently installed.)
  29. Preparing to unpack/LIBSSL1.0. 0_1. 0. 1t-1+deb7u2_armhf.deb ...
  30. Unpacking LIBSSL1. 0. 0:ARMHF (1.0. 1t-1+deb7u2) over (1.0. 1t-1+deb8u6) ...
  31. Selecting previously unselected package Libssl-dev.
  32. Preparing to unpack/libssl-dev_1.0. 1t-1+deb7u2_armhf.deb ...
  33. Unpacking Libssl-dev (1.0. 1t-1+deb7u2) ...
  34. Selecting previously unselected package Libssl-doc.
  35. Preparing to unpack/libssl-doc_1.0. 1t-1+deb7u2_all.deb ...
  36. Unpacking Libssl-doc (1.0. 1t-1+deb7u2) ...
  37. Processing triggers for man-db (2.7. 5-1~bpo8+1) ...
  38. Setting up LIBSSL1. 0. 0:ARMHF (1.0. 1t-1+deb7u2) ...
  39. Setting up Libssl-dev (1.0. 1t-1+deb7u2) ...
  40. Setting up Libssl-doc (1.0. 1t-1+deb7u2) ...
  41. Processing triggers for libc-bin (2.19-18+deb8u10) ...

At this point, the problem solved, later encountered version of the problem caused by the dependency does not correspond to the above method can be resolved.

Transferred from: 78052317?locationnum=10&fps=1

Some of the commands for Ubuntu install software Aptitude,apt-get

Aptitude

Installation:

Original: http://www.isspy.com/aptitude-%E5%91%BD%E4%BB%A4%E8%AF%A6%E8%A7%A3/

The

Aptitude aptitude is a very magical package manager in the Debian Gnu/linux system, based on the famous APT mechanism, which integrates all the functions of Dselect and Apt-get and provides more features, especially in reliance   Relationship processing. Like Apt-get, Aptitude is the most powerful package management tool in Debian and its derivative systems. unlike Apt-get, aptitude is better at dealing with dependency issues. For example, when aptitude deletes a package, it also deletes the packages it depends on. This way, the system will not be left with useless packets, the whole system is cleaner.   The following are some common aptitude commands, for informational purposes only.

Command Role
Aptitude Update Update the list of available packages
Aptitude Upgrade Upgrade the available packages
Aptitude Dist-upgrade Upgrade your system to a new release
Aptitude Install Pkgname Install package
Aptitude Remove Pkgname Delete Package
Aptitude Purge Pkgname To delete a package and its configuration files
Aptitude search String Search Packages
Aptitude Show Pkgname Display Package Details
Aptitude Clean To delete a downloaded package file
Aptitude AutoClean Delete Expired package files only
Definition and introduction

To use aptitude, just open your favorite terminal and type the following command.   De> #de > Aptitude5 aptitude The main view of the organization is very organized, and the interface layout is refreshing. The upper window lists the packages based on the categories and their status in the local system. Aptitude are organized in a tree-like structure, and related nodes are connected by a thin line. You can use the arrow keys, [PageUp], and [PageDown] to navigate. [Return] or [Enter] is used to expand or close a node. The open view of aptitude is divided into four columns: Package status and Request action, package name, current installation version (or de><de>nonede>>de>),   The latest version. Aptitude Package Status in the package list:

V Virtual
B Damage
U Unpack
C Pre-configured
H Pre-installation
C Uninstall not cleared
P Clear Package
I Already installed
E Internal Error

Request action in the Aptitude package list:

H Keep
P Clear
D Delete (uninstall)
B Damage
I Installation
R Re-assembly
U Upgrade
Quick Start

For any program, the first thing you know is how to exit-type [Q] (quit) in Aptitude's main view to exit aptitude. Any time you type [?]   (Help), you can call out helpful information. Aptitude is based on the apt mechanism, so you need to configure the Sources.list file correctly before further operation. and ensure that the package list is updated in a timely manner. [U]   The (update) command is designed for this, similar to the Apt-get update operation. If a new package appears (that is, a package that is still present until the last package list is updated), it will be displayed under the new Packages option.   You can type the [f] (forget that packages is new) command to clear them to the available packages option. Move the cursor to the line that you are interested in, and then type enter to expand the options. Once a package is selected, information about the package will appear at the bottom of the screen. If you want to see more detailed information, you need to type [i] (information).   typing [q] (quit) exits the information display screen.   For packages that are not installed (located in the New Packages or not installed Packages area), you can select and type [+] (add package) to indicate the installation. For packages that have already been installed, you can do things like keep, delete, or clear. Hold refers to maintaining the existing version of the package and preventing it from being upgraded. Remove [-] (remove package) marks the installed packages as deleted status. [_]   (Purge package) command to mark packages as cleared. Once you have marked the package you are interested in, you can type [G] (GO) to save the changes and make it effective.

Selection of Packages

You can do this by browsing and then pressing the corresponding key:

De>[+]de> Select the packages you want to install.
De>[-]de> Select the package you want to delete.
De>[_]de> Select the packages you want to clear.
De>[=]de> Keep the current version of the package and prevent it from being upgraded.
De>[:]de> The package is locked only during the aptitude session.
De>[l]de> Request a reload package.
De>[m]de> Mark the package for automatic installation. Automatically installed packages
Manually installed packages are automatically removed when they are not dependent on requirements.
De>[m]de> Mark the package as manual.
De>[r]de> Request reconfiguration of the package.
De>[i]de> Request to install the package immediately (in its dependent package) and temporarily lock other upgrades and
Installed packages. The function is the same as the Apt-get install de><package>de>.
De>[f]de> It is forbidden to install a version of the package. However, it is normal for later versions.
De>[b]de> Call Reportbug to declare a package error.
De>[c]de> Download and display a change log for a package.
De>[g]de> Enter the preview window for all requests for changes. If you type this key in the preview screen,
The change operation will be performed.
De>[d]de> Query Related packages: Suggest/recommanded/depends
De>[r]de> Querying dependent Packages
De>[/]de> Search
De>[\]de> Continue Search

Note: The Control-u key combination can be used to cancel the action of the previous step.

Apt-get

Note: As with the new version of Apt and Apt-get, Apt is the new version

Under Ubuntu, Apt-get is close to being one of the most commonly used shell commands, because he is the common tool command for Ubuntu to install software.

This article lists the common APT command parameters:

  • Apt-cache Search Package

  • Apt-cache Show package for information about packages, such as description, size, version, etc.

  • sudo apt-get install package

  • sudo apt-get install package--reinstall Reinstall packages

  • sudo apt-get-f Install repair installation

  • sudo apt-get Remove Package

  • sudo apt-get Remove package--purge Delete packages, including configuration files, etc.

  • sudo apt-get update source

  • sudo apt-get upgrade update installed packages

  • sudo apt-get Dist-upgrade upgrade system

  • Apt-cache depends package understand that using the package depends on those packages

  • Apt-cache Rdepends package to see which packages are dependent on the packages

  • sudo apt-get BUILD-DEP Package Installation-related compilation environment

  • Apt-get Source Package Downloads The source code for the bundle

  • sudo apt-get clean && sudo apt-get autoclean cleanup of useless packages

  • sudo apt-get check to see if there is a corrupted dependency

Deb file installation and RPM transfer

    1. $sudo apt-get Install Alien # #alien默认没有安装, so first install it
    2. $sudo Alien xxxx.rpm # #将rpm转换为deb, a xxxx.deb is generated when finished
    3. $sudo dpkg-i Xxxx.deb # #这样xxxx软件就可以安装完成了
    4. Dpkg-l software blur name x view installed software
    5. $sudo dpkg-r xxxx Delete software does not delete the configuration, XXXX is the software name, not the package name, you can use the Dpkg-l software blur name x view
    6. $sudo dpkg-p Xxxx.deb Remove the software and the appropriate configuration


Dpkg is a Debian package management tool. The ability to install, uninstall, get information, and other operations on the package.
Usage:
Install (Unpack and configure):
Dpkg-i Package_file
Dpkg--install Package_file

Unpack
Dpkg--unpack Package_file
This command only unlocks "Package_file" and does not perform package configuration work.

Configuration package:
Dpkg--configure Package

To uninstall a package:
Dpkg-r Package
Dpkg--remove Package
The command deletes the package, but retains the configuration file.
Dpkg-p Package
Dpkg--purge Package
This command deletes the package and deletes the configuration file.

Gets, sets, clears the selection state of the package:
DPKG--get-selections [Package]
Output to standard output, you can use pipe or redirect.
Dpkg--set-selections
Obtained from standard input, you can use pipelines or redirects.
Dpkg--clear-selections
Mark all packages as unloaded.

Apt Source configuration


Apt-get Source Configuration file Vim/etc/apt/sources.list

Turn from: 70146194/

Installation failure due to Linux dependent Library version issue: Libssl-dev version issue could not be installed: Libssl-dev: dependent: libssl1.0.0 (= 1.0.1-4ubuntu3) But 1.0.1-4ubuntu5.31 is about to be installed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.