Summary of software installation methods under ubuntu10.10 (Wireshark installation without network connection)

Source: Internet
Author: User

Preface:Recently, to build the strongswan environment, Wireshark is required to capture packets. One computer is always unable to access the network (only through the LAN), and cannot directly apt-get. So I studied the following software installation methods, especially in Ubuntu, how can I directly copy and install the installation package like in windows. This article is available.

I,In ubuntuThere are generally two software installation formats(Do not use wine or other virtual installations ):
First, the Deb package. The Ubuntu system is developed from Debian, and the software installation follows the Debian format. This is the most convenient and preferred.
Second, the. Bin package. binfile is a common software package for all users of the linuxsystem. It is generally compressed into the tar.gz format. You can download it and decompress it.

Ii. Software Installation Method

1. sudo apt-Get install <package name>
The most common method. You can download and install the software directly on the Ubuntu source server, as long as you know the name of the software. You can even just find the general name, as long as the original server has (this is the premise), you can find it.

This method is the most convenient. Because the dependency can be automatically searched and the dependent library is automatically installed. This keeps you away from the dependency of vomiting blood.

APT and dpkg Quick Reference

For example: sudo apt-Get install Vim. This is the installation of VIM (which is not included in ubuntu10.10). It will be done after two inputs.

Install Wireshark: sudo apt-Get install Wireshark

Some questions:

1) The software has been installed.

Tip: 0 software packages are upgraded, 0 new software packages are installed, 0 software packages are to be uninstalled, and 8 software packages are not upgraded.

2) software not found

It may be that the source does not exist. Please try to modify the source (the simplest method is in the new IDE-source management); it may also be that the software package name is incorrect (be case sensitive ), baidu or Google; another possibility is that the source is not updated, and sudo apt-Get update is used to update the source.

3) How to uninstall

Sudo apt-Get remove <package name>

This is a problem, that is, some dependent libraries will not be uninstalled, but it will prompt those libraries to be depended on. I don't know if some options can be used to detach unnecessary dependent libraries, but no answer is found.

4) Where is the installation package?

The installation packages downloaded by APT-Get are in/var/Cache/APT/archives.

5) Where is

This is the biggest problem. Apt-Get software installed,The installation location is maintained by the source Manager and cannot be selected by the source Manager.If your software does not prompt where your configuration file should be stored, let's vomit blood... This is how OpenSSL vomited blood.

What's more, if you have installed the software in other ways, it will be installed in the original installation location. If you forget where you are, continue to vomit blood...

Note: Some people say that dpkg-L <software package name> can find where the software is, but it is not as easy as locate...

2. Install the new software Manager
The new software management is in "system-system management" on the menu. The English name is synaptic. If your system has no vomiting blood, install sudo apt-Get install synaptic.

The password is required when you enable it. The check box before installed software is green.

Find the software-tag for installation-execution. Other similar items such as detach are in the right-click menu.

Set-the software library to change the software source. This is more convenient than modifying the configuration file that the ghost knows where to change the source.

Note: the new version and apt-Get are actually the same thing.

Note: APT-Get conflicts with the new version. Do not run the command at the same time.

  E: unable to obtain the lock  /  var  /  lib  /  dpkg  /  lock    -  open (  11  : resource temporarily unavailable) 
E: The management directory cannot be locked ( / var / lib / dpkg / ) are other processes occupying it?

This is generally the case.
3. Download the Deb file and double-click to install it.
This is similar to Windows installation method, which is simple and quick. You need to clarify the dependencies and install them in sequence. It's easy and complicated-you may want something else.

The. Deb file is actually usedUbuntu Software Center(Ubuntu Software Center, the "application" in the menuProgram"The bottom one), and then manage the software in the Ubuntu Software Center. During installation, the system prompts which dependent libraries are missing.

Wireshark is installed without network connection.

Some common software can also be used for installation.

Note: Deb can also be installed by dpkg. For details, see here

4. Source Code Installation

Download the source package-extract-./configure-./make-./make install, which is also a dependent library problem.

5. download and install the. binfile
Download the binfile and check whether the binfile has the execution permission. do not modify the sudo chmod + X file. Then execute the command (don't forget ./).
I have never used it, and I don't make comments. It seems complicated.
3. Wireshark installation without network connection

The situation is described in the preface. The Deb package is directly copied on the official website, but n libraries depend on each other. Bored, I thought I had installed it on the local machine. I had to download the installation package automatically. Although I don't know the installation package in Shenma's place, isn't it enough. Be decisive.

I searched the internet and found that all the installation packages downloaded by APT-Get are in/var/Cache/APT/archives. Go to the LS, And there is indeed. Copy the Deb package of Wireshark and install it in the Software Center, prompting that there are several fewer databases. Put the database name in/var/Cache/APT/archives ls | grep, and find that the Deb package has the following:

 Libc  -  Ares2_1  .  7.3  -  I386  .  Deb
Libcap2 - Bin_1 % 3a2 . 19 - 2_i386 . Deb
Libsmi2ldbl_0 . 4.8 + Dfsg2 - 2_i386 . Deb
Wireshark - Common_1 . 2.11 - 6build0 . 10.10 . I386 . Deb

If the local machine has an Apache file, it is directly copied to the Apache directory. The result is normal.The % in libcap2-bin_1 % 3a2. 19-2_i386.deb caused the download to fail the ball and was renamed decisively.

Install it one by one.

Summary:Find the package in the apt-Get download path-the installation prompt is missing-find the dependency library for installation.

Related Article

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.