Tools and use of FTP under Linux and Rpmreadsignature failed errors

Source: Internet
Author: User

Prompt Rpmreadsignature failed error when installing RPM file 2011-09-23 11:04
Phenomenon:
[Email protected] share]# RPM-IVH syslog-ng-3.1.0-1.rhel5.i386.rpm
Error:syslog-ng-3.1.0-1.rhel5.i386.rpm:rpmreadsignature failed:region Trailer:bad, tag 15872 type 2047 offset 28672 Co UNT 4096
ERROR:SYSLOG-NG-3.1.0-1.RHEL5.I386.RPM cannot be installed

"Workaround"
1, check the download use of the installation package, compressed package is complete, or from the regular mirror war point re-download;

2, the general novice may be due to upload to Linux with FTP is not caused by binary mode. Need to transition to binary mode in Ftp>binary.

Source Address: http://hi.baidu.com/somken/blog/item/069e62cbdfe19a21f8dc618e.html

So far, FTP is a standard file network transport protocol, applied in the OSI model application layer, FTP support two transmission modes, ASCII (text transfer mode, the biggest disadvantage is to filter out non-conforming data) and binary (binary transmission mode, Do not filter the data and all accept) mode, each login success, the default is the ASCII mode, you can use the input-related commands to switch to binary mode!

First Linux under the installation configuration Vsftp server side, and open the FTP service, you can use Netstat-tulnp|grep vsftp to see the success of the launch

[[Email protected] ~]# FTP 192.168.1.192

Ftp> Help (see the commands you can use, which are more commonly used, of course: Upload, download, new, delete, mode switch ....) Wait, the presentation below)
1. Get (Download)

Ftp> dir (you can also use LS to view documents under the directory)

-RWXRWXRWX 1 Ethnicity ethnicity 206666 Mar 22:00 222.184.88.146.txt
ftp> binary (switch to binary mode)
Switching to Binary mode.
Ftp> Hash (open hash, i.e. display process)
Hash mark Printing on (1024x768 bytes/hash mark).

ftp> get 222.184.88.146.txt (download to local and show process)
PORT command successful. Consider using PASV.
Opening BINARY mode data connection for 222.184.88.146.txt (206666 bytes).
################################################################################
################### #226 File send OK.
ftp: Received 206666 bytes, spents 0.02 seconds 10333.30 kilobytes per second.

Ftp> bye
221 Goodbye.

C:\>dir (This is the file you just downloaded)

2011/05/08 02:21 206,666 222.184.88.146.txt

2, put (upload, here is a technique, upload where the document, you can in that directory FTP login)

Ftp> put Install.log.syslog
Local:install.log.syslog Remote:install.log.syslog
227 Entering Passive Mode (192,168,1,192,43,203)
Ok to send data.
226 File receive OK.
5341 bytes sent in 0.23 seconds (KBYTES/S)
Ftp> dir (view, upload successful)
-rw-r--r--1 5341 Mar 14:28 install.log.syslog

3, mkdir, RmDir, rename (New, deleted, renamed directories)

ftp> mkdir Laji (new command)
257 "/home/ethnicity/laji" created
Ftp> dir
Drwxr-xr-x 2 4096 Mar 14:32 Laji

ftp> rmdir Laji (removed command)
Remove Directory operation successful.

ftp> Rename Wanzi Wanle (use of renaming)
For Rnto.
Rename successful.
4, delete, rname (delete, rename the document)
ftp> Delete web.crt (delete document)
+ Delete operation successful.

ftp> rename Install.log.syslog syslog.conf (file renaming)
For Rnto.
Rename successful.

5. Status (view current settings)

ftp> status
Connect to 192.168.1.192.
Type: ASCII; details: on; Ringtones: Off
Debug: Off; hash mark print: Off.
6. PWD (Check the current path of operation after logging in)

ftp> pwd
257 "/home/ethnicity"

7. Bell (Turn on the bell mode)

Ftp> Bell
The ringtone mode is off.

8. Help (View the commands you can use in the current mode)

Ftp> Help

9, Debug (display the detailed information of the operation)

Ftp> Debug
Debug on.

9, LS, dir (view the current directory of documents and directories, dir display information more detailed)

For example, when you turn on the dir command in debug mode

Ftp> dir
---> Port 192,168,1,188,213,253 (IP and ports of logged-on hosts)
PORT command successful. Consider using PASV.
---> LIST
Here comes the directory listing.
-RWXRWXRWX 1 206666 Mar 222.184.88.146.txt
-rw-r--r--1 0 0 Mar 13:27 index.html
Drwxr-xr-x 2 4096 Dec 13:43 public_html
ftp: Received 345 bytes, spents 0.00 seconds 345.00 Kilobytes per second.

10, bye (exit)

Ftp> bye
---> QUIT
221 Goodbye.

The commands listed above in addition to the function have similar, bulk operation commands, as follows

Mdelete, Mdir, Mget, mkdir, MLS, Mput

These commands are used very frequently, of course, if you want to know more words, can be combined with help and consult the relevant information, here no longer repeat!

Tools and use of FTP under Linux and Rpmreadsignature failed errors

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.