Linuxqq installation and problems caused {permission bit is 777 (required & gt; = 0755 and & lt; = 0755)}, linuxqq777

Source: Internet
Author: User

Linuxqq installation and problems caused {permission bit is 777 (must be> = 0755 and <= 0755)}, linuxqq777

Oghost @ loghost-virtual-machine :~ $ ~ /Home/loghost/qq $ sudo dpkg-I linuxqq_v1.0.2_beta1_i386.deb
Bash:/home/loghost/qq $: the file or directory does not exist. // problem 1 appears.

Root @ loghost-virtual-machine:/home/loghost # ls/home // locate the location of the deb File
Loghost
Root @ loghost-virtual-machine:/home/loghost # ls/home/loghost
Error qq sample sample2 sample4 public video document music
Examples. desktop qwe sample1 sample3 sample5 template image download desktop
Root @ loghost-virtual-machine:/home/loghost # ls/home/loghost/qq
Linuxqq_v1.0.2-beta1_i386.deb // is the package to use
Root @ loghost-virtual-machine:/home/loghost # ls/home/loghost/qq/linuxqq_v1.0.2-beta1_i386.deb/* Add the path before the installation package */
/Home/loghost/qq/linuxqq_v1.0.2-beta1_i386.deb.

Root @ loghost-virtual-machine:/home/loghost # sudo dpkg-I/home/loghost/qq/linuxqq_v1.0.2-beta1_i386.deb
Dpkg: Error Handling archiving/home/loghost/qq/linuxqq_v1.0.2-beta1_i386.deb (-- install:
Parsing File '/var/lib/dpkg/tmp. ci/control' near line 7th, software package 'linuxqq: i386 ':
The 'version' field string v1.0.2-beta1 has an error: the Version number does not start with a number.
An error occurred during processing:
/Home/loghost/qq/linuxqq_v1.0.2-beta1_i386.deb // problem 2 found (idea: Remove v)

(If the command succeeds, root @ loghost-virtual-machine:/home/oghost/qq # exit // exit root
Exit
Root @ loghost-virtual-machine ::~ $)

Root @ loghost-virtual-machine:/home/loghost # dpkg-x/home/loghost/qq/linuxqq_v1.0.2-beta1_i386.deb extract/

// Decompress the files in the package to the extract directory.

Root @ loghost-virtual-machine:/home/loghost # dpkg-e/home/loghost/ qq/linuxqq_v1.0.2-beta1_i386.debextract/DEBIAN/

// Decompress the control information of the package extract/DEBIAN/

(Though the file is decompressed, it cannot be changed due to permission issues)

(The attempt to use root @ loghost-virtual-machine:/home/loghost # chmod + w/home/loghost/extract/DEBIAN is not reflected) // problem 3

Root @ loghost-virtual-machine:/home/loghost # sudo chmod 777/home/loghost/extract/DEBIAN/control

// Change the version number in the folder

Root @ loghost-virtual-machine:/home/loghost # dpkg-deb-B extract/extract. debdpk-deb: error: the permission bit of the control directory is 777 (must be greater than or equal to 0755 and <= 0755) // question 4

Root @ loghost-virtual-machine:/home/loghost # sudo chmod-w/home/loghost/extract/DEBIAN/control

Chmod:/home/loghost/extract/DEBIAN/control: the new permission is r-xrwxrwx, not r-xr-x

// After a series of permission changes

Root @ loghost-virtual-machine:/home/loghost # ll extract/DEBIAN/control

-R-xr-xr-x1 root 411 July 25 15: 30 extract/DEBIAN/control *

Root @ loghost-virtual-machine:/home/loghost # dpkg-deb-B extract/extract. deb // repackage the modified content to generate the deb package

Dpkg-deb: error: the permission bit of the control directory is 777 (required> = 0755 and <= 0755)

 

 

 

Root @ loghost-virtual-machine:/home/loghost # sudo chmod-R 775/home/loghost/extract/DEBIAN/control

 

Root @ loghost-virtual-machine:/home/loghost # chmod-R 775/home/loghost/extract/DEBIAN/control // solution found on the Network

 

Root @ loghost-virtual-machine:/home/loghost # dpkg-deb-B extract/extract. debdpkg-deb: error: the permission bit of the control directory is 777 (required> = 0755 and <= 0755)

 

If you have the opportunity, please kindly advise.

 

 

 

Appendix: Permission bit description

7 (decimal) = 111 (Binary) (read, write, and execute)
6 (decimal) = 110 (Binary)
5 (decimal) = 101 (Binary) (read, not write, can be executed)
4 (decimal) = 100 (Binary)
3 (decimal) = 011 (Binary)
2 (decimal) = 010 (Binary) (not readable, writable, or executed)
1 (decimal) = 001 (Binary)
0 (decimal) = 000 (Binary) (not readable, not writable, not executable)

0 = No.
7 = read, write, and execute ))
5 = read and run (read), execute ))

 

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.