Welcome! Log In Create A New Profile

Advanced

can't chmod error messages in apt

Posted by habibie 
can't chmod error messages in apt
March 15, 2018 08:40AM
On my Seagate Dockstar on debian linux-4.15.2-kirkwood-tld-1-bodhi.tar.bz2 and whenever I do apt install <software package> as root, apt always spits out some error messages as shown below. The software package installed OK, but those error messages indicate root has no access to modify and/or delete the intended files. Has anyone encountered such a problem and can offer to fix this?
[root@debian:/home/local/PEOPLE/debian 3%] # apt install less
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  less
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 122 kB of archives.
After this operation, 267 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian stretch/main armel less armel 481-2.1 [122 kB]
Fetched 122 kB in 0s (648 kB/s)
Selecting previously unselected package less.
(Reading database ... 12695 files and directories currently installed.)
Preparing to unpack .../less_481-2.1_armel.deb ...
Unpacking less (481-2.1) ...
Setting up less (481-2.1) ...
Processing triggers for man-db (2.7.6.1-2) ...
/usr/bin/mandb: can't chmod /var/cache/man/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/zh_CN/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/zh_CN/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/zh_CN/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/da/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/da/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/da/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/hu/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/hu/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/hu/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/fr/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/fr/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/fr/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/pt_BR/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/pt_BR/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pt_BR/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/ja/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/ja/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ja/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/pl/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/pl/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pl/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/it/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/it/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/it/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/zh_TW/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/zh_TW/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/zh_TW/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/tr/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/tr/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/tr/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/pt/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/pt/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pt/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/sv/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/sv/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sv/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/cs/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/cs/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/cs/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/sl/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/sl/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sl/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/nl/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/nl/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/nl/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/ko/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/ko/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ko/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/de/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/de/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/de/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/ru/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/ru/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ru/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/id/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/id/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/id/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/fi/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/fi/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/fi/1652: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/es/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/es/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/es/1652: Permission denied
10.027u+1.446s=0:44.39e(25.8%) TDSavg=0k+0k+0k max=65200k 169088+53624io 83pf+0sw
[root@debian:/home/local/PEOPLE/debian 4%] #
Re: can't chmod error messages in apt
March 15, 2018 09:49AM
Maybe filesystem could be mounted read only ?
The mount command without any arguments will show a list of mounted filesystems with a list of filesystems in parentheses. rw indicates that the filesystem is mounted read-write, ro indicates read-only.

–°heck attributes of files by means of the lsattr command and try to change from the chattr command



Edited 1 time(s). Last edit at 03/15/2018 09:53AM by butaford.
Re: can't chmod error messages in apt
March 15, 2018 01:54PM
habibie,

mount
ls -alt /usr/bin/mandb/*

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: can't chmod error messages in apt
March 15, 2018 02:11PM
Looks like all were mount in R/W mode. Perhaps, I have a defective microSD card.

[root@debian:/root 21%] # mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=54712k,nr_inodes=13678,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=11756k,mode=755)
/dev/sda1 on / type ext2 (rw,noatime,errors=remount-ro,user_xattr,acl)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=23500k)
tmpfs on /tmp type tmpfs (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
[root@debian:/root 22%] # ls -alt /usr/bin/mandb/*
ls: No match.
[root@debian:/root 23%] # ls -alt /usr/bin/mandb
-rwxr-xr-x 1 root root 120660 Dec 13  2016 /usr/bin/mandb
[root@debian:/root 24%] #
Re: can't chmod error messages in apt
March 15, 2018 02:20PM
habibie,

ls -lat /var/cache/man/*

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: can't chmod error messages in apt
March 15, 2018 02:27PM
habibie Wrote:
-------------------------------------------------------
>
> [root@debian:/root 22%] # ls -alt
> /usr/bin/mandb/*
> ls: No match.
> [root@debian:/root 23%] # ls -alt /usr/bin/mandb
> -rwxr-xr-x 1 root root 120660 Dec 13  2016
> /usr/bin/mandb
> [root@debian:/root 24%] #
That's to be expected. mandb is an executable, not a directory. How about:
ls -alt /var/cache/man
ls -alt /var/cache/man/*
-JT
Re: can't chmod error messages in apt
March 15, 2018 08:38PM
Here is the output from ls -lat /var/cache/man/*. Noticed they are owned by proxy and root has no permission on this owner according to the error message? Kind of does not make sense to me.
[root@debian:/root 24%] # ls -lat /var/cache/man/*
-rw-r--r-- 1 proxy 62 146047 Jul 23  2017 /var/cache/man/index.db
-rw-r--r-- 1 proxy 62    190 Jun 27  2013 /var/cache/man/CACHEDIR.TAG

/var/cache/man/es:
total 44
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 18101 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/fi:
total 32
drwxr-xr-x  3 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 12513 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1

/var/cache/man/id:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 13559 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/ru:
total 48
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 21630 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/de:
total 48
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 22673 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/ko:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 12763 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/nl:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 15593 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/cs:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 13512 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/it:
total 48
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 20912 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/pt:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 14982 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/sl:
total 36
drwxr-xr-x  4 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 12810 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/sv:
total 44
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 17008 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/tr:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 13370 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/zh_TW:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 13036 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/fr:
total 48
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 24086 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/ja:
total 48
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 21126 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/pl:
total 44
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
-rw-r--r--  1 proxy 62 19255 Jul 23  2017 index.db
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/pt_BR:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 13408 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/da:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 14631 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/hu:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 13142 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/zh_CN:
total 40
drwxr-xr-x  5 proxy 62  4096 Jul 23  2017 .
drwxr-xr-x 28 proxy 62  4096 Jul 23  2017 ..
-rw-r--r--  1 proxy 62 15708 Jul 20  2017 index.db
-rw-r--r--  1 proxy 62   190 Jun 27  2013 CACHEDIR.TAG
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat1
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat5
drwxr-xr-x  2 proxy 62  4096 Jun 27  2013 cat8

/var/cache/man/cat1:
total 8
drwxr-xr-x 28 proxy 62 4096 Jul 23  2017 ..
drwxr-xr-x  2 proxy 62 4096 Jun 27  2013 .

/var/cache/man/cat3:
total 8
drwxr-xr-x 28 proxy 62 4096 Jul 23  2017 ..
drwxr-xr-x  2 proxy 62 4096 Jun 27  2013 .

/var/cache/man/cat5:
total 8
drwxr-xr-x 28 proxy 62 4096 Jul 23  2017 ..
drwxr-xr-x  2 proxy 62 4096 Jun 27  2013 .

/var/cache/man/cat7:
total 8
drwxr-xr-x 28 proxy 62 4096 Jul 23  2017 ..
drwxr-xr-x  2 proxy 62 4096 Jun 27  2013 .

/var/cache/man/cat8:
total 8
drwxr-xr-x 28 proxy 62 4096 Jul 23  2017 ..
drwxr-xr-x  2 proxy 62 4096 Jun 27  2013 .
[root@debian:/root 25%] #
Re: can't chmod error messages in apt
March 15, 2018 09:18PM
I replaced the microSD card with a 4 GB USB2 memory stick and the problem persists. See below.
root@debian:~# apt-get install vim tcsh
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following package was automatically installed and is no longer required:
  libssl1.0.0
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
  libgpm2 vim-runtime
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 tcsh vim vim-runtime
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 6776 kB of archives.
After this operation, 31.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://ftp.us.debian.org/debian stretch/main armel libgpm2 armel 1.20.4-6.2+b1 [33.4 kB]
Get:2 http://ftp.us.debian.org/debian stretch/main armel tcsh armel 6.20.00-7 [454 kB]
Get:3 http://ftp.us.debian.org/debian stretch/main armel vim-runtime all 2:8.0.0197-4+deb9u1 [5407 kB]
Get:4 http://ftp.us.debian.org/debian stretch/main armel vim armel 2:8.0.0197-4+deb9u1 [881 kB]                                    
Fetched 6776 kB in 9s (747 kB/s)                                                                                                   
Selecting previously unselected package libgpm2:armel.
(Reading database ... 12557 files and directories currently installed.)
Preparing to unpack .../libgpm2_1.20.4-6.2+b1_armel.deb ...
Unpacking libgpm2:armel (1.20.4-6.2+b1) ...
Selecting previously unselected package tcsh.
Preparing to unpack .../tcsh_6.20.00-7_armel.deb ...
Unpacking tcsh (6.20.00-7) ...
Selecting previously unselected package vim-runtime.
Preparing to unpack .../vim-runtime_2%3a8.0.0197-4+deb9u1_all.deb ...
Adding 'diversion of /usr/share/vim/vim80/doc/help.txt to /usr/share/vim/vim80/doc/help.txt.vim-tiny by vim-runtime'
Adding 'diversion of /usr/share/vim/vim80/doc/tags to /usr/share/vim/vim80/doc/tags.vim-tiny by vim-runtime'
Unpacking vim-runtime (2:8.0.0197-4+deb9u1) ...
Selecting previously unselected package vim.
Preparing to unpack .../vim_2%3a8.0.0197-4+deb9u1_armel.deb ...
Unpacking vim (2:8.0.0197-4+deb9u1) ...
Setting up libgpm2:armel (1.20.4-6.2+b1) ...
Setting up tcsh (6.20.00-7) ...
update-alternatives: using /bin/tcsh to provide /bin/csh (csh) in auto mode
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
/usr/bin/mandb: can't chmod /var/cache/man/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/pt_BR/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/pt_BR/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pt_BR/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/es/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/es/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/es/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/fr/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/fr/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/fr/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/sv/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/sv/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sv/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/fi/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/fi/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/fi/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/nl/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/nl/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/nl/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/pt/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/pt/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pt/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/cs/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/cs/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/cs/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/ko/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/ko/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ko/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/sl/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/sl/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/sl/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/de/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/de/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/de/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/da/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/da/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/da/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/pl/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/pl/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/pl/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/zh_TW/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/zh_TW/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/zh_TW/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/hu/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/hu/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/hu/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/id/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/id/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/id/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/ja/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/ja/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ja/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/tr/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/tr/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/tr/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/ru/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/ru/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/ru/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/it/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/it/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/it/5764: Permission denied
/usr/bin/mandb: can't chmod /var/cache/man/zh_CN/CACHEDIR.TAG: Operation not permitted
/usr/bin/mandb: can't remove /var/cache/man/zh_CN/CACHEDIR.TAG: Permission denied
/usr/bin/mandb: fopen /var/cache/man/zh_CN/5764: Permission denied
Setting up vim-runtime (2:8.0.0197-4+deb9u1) ...
Setting up vim (2:8.0.0197-4+deb9u1) ...
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode
update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode
root@debian:~#
Re: can't chmod error messages in apt
March 16, 2018 12:21AM
That definitely doesn't look right. Here's what mine looks like:
root@debian:~# ls -alt /var/cache/
total 28
drwxr-sr-x 28 man  root 4096 Mar 15 04:25 man

rooot@debian:~# ls -alt /var/cache/man/*
-rw-r--r-- 1 man root 157255 Mar 11 06:47 /var/cache/man/index.db
-rw-r--r-- 1 man root    190 Jun 27  2013 /var/cache/man/CACHEDIR.TAG

/var/cache/man/cs:
total 40
drwxr-sr-x  5 man root  4096 Mar 15 04:25 .
drwxr-sr-x 28 man root  4096 Mar 15 04:25 ..
-rw-r--r--  1 man root 13484 Mar 11 06:47 index.db
-rw-r--r--  1 man root   190 Jun 27  2013 CACHEDIR.TAG
drwxr-sr-x  2 man root  4096 Jun 27  2013 cat1
drwxr-sr-x  2 man root  4096 Jun 27  2013 cat5
drwxr-sr-x  2 man root  4096 Jun 27  2013 cat8
...

I have no idea what the proxy user is for (I have one as well) or what group 62 is (I don't have that group) or how they got associated with you man directory. There may be a bigger problem here, but since you have a backup root file system you can experiment with, I'd try the following:
cd /var/cache
chgrp root man
chown man man
cd man
chgrp -R root *
chown -R man *
Then see if the apt-get install works.

-JT
Re: can't chmod error messages in apt
March 16, 2018 10:47AM
Mine was installed from linux-4.15.2-kirkwood-tld-1-bodhi.tar.bz2 and don't know why the files are owned by proxy and user group 62. That is kind of strange. Anyway, I just recursively changed the ownership of my /var/cache/man so it now belongs to man user and root group. Now, no longer see those error messages when use apt to install a package. Hopefully, this fixes the problem.
Re: can't chmod error messages in apt
March 16, 2018 02:28PM
habibie,

It should be own by man/man. I think you should redo your rootfs from the tarball again.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: