Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Suddenly not authorized to mount anything.

If none of the specific sub-forums seem right for your thread, ask here.
Message
Author
luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Suddenly not authorized to mount anything.

#1 Post by luiznetto »

I run Debian 10 on Acer Aspire 5315. I used to have media that I inserted automatically mounted. But now when I try to mount anything, whether an optical disk, a USB flash drive, or another partition on my hard drive where I have another Linux system installed, I get the following message:
Not authorized to perform operation (polkit authority not available and caller is
not uid 0).
Why this sudden change of behavior, and what can I do about it?
I thank you in advance, any help will be greatly appreciated.

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

#2 Post by Chrisdb »

Did you install any specific packages lately...

Is the polkit service running?

Code: Select all

sudo systemctl status polkit.service
**EDIT
Also post output of :

Code: Select all

pkaction | grep mount

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Suddenly not authorized to mount anything.

#3 Post by Head_on_a_Stick »

Which desktop is this?

And we should probably see

Code: Select all

apt policy
deadbang

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#4 Post by luiznetto »

It's strange, but it seems to be back to normal. I didn't do anything - not that I know of!
But anyway answering Chrisdb:

Code: Select all

luiz@debian:~$ su
Password: 
root@debian:/home/luiz# systemctl status polkit.service
● polkit.service - Authorization Manager
   Loaded: loaded (/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: active (running) since Thu 2020-01-16 15:16:15 PST; 1h 51min ago
     Docs: man:polkit(8)
 Main PID: 739 (polkitd)
    Tasks: 3 (limit: 2307)
   Memory: 2.5M
   CGroup: /system.slice/polkit.service
           └─739 /usr/lib/policykit-1/polkitd --no-debug

Jan 16 15:16:15 debian systemd[1]: Starting Authorization Manager...
Jan 16 15:16:15 debian polkitd[739]: started daemon version 0.105 using authority implementation `local' 
Jan 16 15:16:15 debian systemd[1]: Started Authorization Manager.
Jan 16 15:17:53 debian polkitd(authority=local)[739]: Registered Authentication Agent for unix-session:3 
Jan 16 16:58:22 debian polkitd(authority=local)[739]: Operator of unix-session:3 successfully authenticat
and

Code: Select all

root@debian:/home/luiz# pkaction | grep mount
org.freedesktop.udisks2.filesystem-mount
org.freedesktop.udisks2.filesystem-mount-other-seat
org.freedesktop.udisks2.filesystem-mount-system
org.freedesktop.udisks2.filesystem-unmount-others
and also answering Head_on_a_stick:

Code: Select all

root@debian:/home/luiz# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/debian buster/main i386 Packages
     release o=dl.winehq.org,a=stable,n=buster,l=winehq,c=main,b=i386
     origin dl.winehq.org
 100 http://ftp.debian.org/debian buster-backports/main i386 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=i386
     origin ftp.debian.org
 500 http://security.debian.org stable/updates/main i386 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://ftp.fr.debian.org/debian stable-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian stable/non-free i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian stable/contrib i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian stable/main i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386
     origin ftp.fr.debian.org
 500 http://deb.debian.org/debian buster-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://security.debian.org/debian-security buster/updates/main i386 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://deb.debian.org/debian buster/main i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386
     origin deb.debian.org
Pinned packages:
My desktop is LXDE, and the file manager PCManFM seems to have all the right permissions as regards volume management.
I don't remember installing any specific packages lately. All I did was: I have three partitions on my hard drive: sda1, where I used to have Knoppix installed, swap, and sda3, where Debian is installed. I want to install Tiny Core on sda1, and that's why I re-formatted sda1, from vfat to ext4, using GParted that comes on the Knoppix DVD. When I went back to Debian, I noticed that mount permissions were messed up. I repeat that I re-formatted sda1 but didn't touch the partition where Debian is installed, unless something happened that I am unaware of.
I want to understand why this happens, because for a whole two days I couldn't mount anything, as I told you, and in case it happens again, I want to know how to deal with it.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Suddenly not authorized to mount anything.

#5 Post by Head_on_a_Stick »

I'm going to blame the WINE repositories until evidence to the contrary is provided.

And you should change "stable" to "buster" unless you want to upgrade to bullseye automatically once that becomes the next stable release.
deadbang

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#6 Post by luiznetto »

Sorry, I thought it was back to normal two days ago, but now the same problem is back. It looks like something happens during boot that decides whether I will be allowed to mount or not.

What are "wine repositories", please? And I thought I had buster already.

Anyway, here are the new outputs of the same commands as in my previous reply:

Code: Select all

root@debian:/home/luiz# systemctl status polkit.service
● polkit.service - Authorization Manager
   Loaded: loaded (/lib/systemd/system/polkit.service; static; vendor preset: enabled)
   Active: active (running) since Sat 2020-01-18 15:05:06 PST; 26min ago
     Docs: man:polkit(8)
 Main PID: 965 (polkitd)
    Tasks: 3 (limit: 2306)
   Memory: 2.4M
   CGroup: /system.slice/polkit.service
           └─965 /usr/lib/policykit-1/polkitd --no-debug

Jan 18 15:05:04 debian systemd[1]: Starting Authorization Manager...
Jan 18 15:05:06 debian polkitd[965]: started daemon version 0.105 using authority implementation 
Jan 18 15:05:06 debian systemd[1]: Started Authorization Manager.
Jan 18 15:06:26 debian polkitd(authority=local)[965]: Registered Authentication Agent for unix-se

Code: Select all

root@debian:/home/luiz# pkaction | grep mount
org.freedesktop.udisks2.filesystem-mount
org.freedesktop.udisks2.filesystem-mount-other-seat
org.freedesktop.udisks2.filesystem-mount-system
org.freedesktop.udisks2.filesystem-unmount-others

Code: Select all

root@debian:/home/luiz# apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 https://dl.winehq.org/wine-builds/debian buster/main i386 Packages
     release o=dl.winehq.org,a=stable,n=buster,l=winehq,c=main,b=i386
     origin dl.winehq.org
 100 http://ftp.debian.org/debian buster-backports/main i386 Packages
     release o=Debian Backports,a=buster-backports,n=buster-backports,l=Debian Backports,c=main,b=i386
     origin ftp.debian.org
 500 http://security.debian.org stable/updates/main i386 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://ftp.fr.debian.org/debian stable-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian stable/non-free i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=non-free,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian stable/contrib i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=contrib,b=i386
     origin ftp.fr.debian.org
 500 http://ftp.fr.debian.org/debian stable/main i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386
     origin ftp.fr.debian.org
 500 http://deb.debian.org/debian buster-updates/main i386 Packages
     release o=Debian,a=stable-updates,n=buster-updates,l=Debian,c=main,b=i386
     origin deb.debian.org
 500 http://security.debian.org/debian-security buster/updates/main i386 Packages
     release v=10,o=Debian,a=stable,n=buster,l=Debian-Security,c=main,b=i386
     origin security.debian.org
 500 http://deb.debian.org/debian buster/main i386 Packages
     release v=10.2,o=Debian,a=stable,n=buster,l=Debian,c=main,b=i386
     origin deb.debian.org
Pinned packages:

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

#7 Post by Chrisdb »

luiznetto wrote: What are "wine repositories", please?
HoaS is referring to the fact you are using the Wine repos in your /etc/apt/sources.list or under /etc/apt/sources.list.d

Why are you using it, this is not a standard repo. It is normal to expect issues then.

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#8 Post by luiznetto »

Well, here is my /etc/apt/sources.list:

Code: Select all

luiz@debian:~$ cat /etc/apt/sources.list
# 

# deb cdrom:[Official Debian GNU/Linux Live 10.0.0 lxde 2019-07-06T11:17]/ buster main

#deb cdrom:[Official Debian GNU/Linux Live 10.0.0 lxde 2019-07-06T11:17]/ buster main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

#------------------------------------------------------------------------------#
#                   OFFICIAL DEBIAN REPOS                    
#------------------------------------------------------------------------------#

###### Debian Main Repos
deb http://ftp.fr.debian.org/debian/ stable main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ stable main contrib non-free

deb http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ stable-updates main contrib non-free

deb http://security.debian.org/ stable/updates main
deb-src http://security.debian.org/ stable/updates main

deb http://ftp.debian.org/debian buster-backports main
deb-src http://ftp.debian.org/debian buster-backports main

#------------------------------------------------------------------------------#
#                      UNOFFICIAL  REPOS                       
#------------------------------------------------------------------------------#

###### 3rd Party Binary Repos
###Debian Multimedia
deb [arch=amd64,i386] https://www.deb-multimedia.org buster main non-free

###Google Chrome Browser
#deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

###Google Earth
#deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main

###Wine
deb [arch=i386] https://dl.winehq.org/wine-builds/debian/ buster main
And here is /etc/apt/sources.list.d/multimedia.list:

Code: Select all

luiz@debian:/etc/apt/sources.list.d$ cat multimedia.list
deb https://www.deb-multimedia.org buster main non-free
Which repositories are the culprits, in your view?

I have another question: how can I know which packages come from which repository? And if I uninstall those packages, will the problem go away?

peter_irich
Posts: 1403
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation
Been thanked: 11 times

Re: Suddenly not authorized to mount anything.

#9 Post by peter_irich »

rerrepro is exist for the repository service.

Code: Select all

apt-get install reprepro
man reprepro. list command. For example, for the my local Ubuntu repository

Code: Select all

reprepro -b /home/repo-bionic/ubuntu list bionic > repo.lst
Or whole script:

Code: Select all

#!/bin/bash

reprepro -b /home/repo-bionic/ubuntu list bionic > repo.lst
#reprepro list bionic > repo.lst
cut -d " " -f 2 repo.lst |sort > repo_names
grep -E ^lib repo_names |sort > repo_libs
grep -E -v ^lib repo_names |sort > repo_main
chown 1001:1000 repo.lst repo_names repo_libs repo_main
cp -af repo.lst repo_names repo_libs repo_main /home/peter/archive/Ubuntu/
#apt-get update

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Suddenly not authorized to mount anything.

#10 Post by Head_on_a_Stick »

luiznetto wrote:Which repositories are the culprits, in your view?
The non-Debian ones. I am especially suspicious of deb-multimedia, we've had problems with them before.

Have you updated the package database recently? I can't see deb-multimedia in the apt policy output you posted earlier.
luiznetto wrote:how can I know which packages come from which repository?
This should show all packages not from the Debian repositories:

Code: Select all

aptitude search '?narrow(?installed, !?origin(debian))'
luiznetto wrote:if I uninstall those packages, will the problem go away?
Possibly.
deadbang

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#11 Post by luiznetto »

I did what you told me, and here is the result:

Code: Select all

luiz@debian:~$ aptitude search '?narrow(?installed, !?origin(debian))'
i A linux-headers-4.19.0-5-686-pae           - Header files for Linux 4.19.0-5-686-pae           
i A linux-headers-4.19.0-5-common            - Common header files for Linux 4.19.0-5            
i A linux-headers-686-pae                    - Header files for Linux 686-pae configuration (meta
i   linux-image-4.19.0-5-686                 - Linux 4.19 for older PCs (signed)                 
i   linux-image-686                          - Linux for older PCs (meta-package)                
i A uim                                      - Universal Input Method - main binary package      
i A uim-anthy                                - Universal Input Method - Anthy support metapackage
i A uim-data                                 - Universal Input Method - data files               
i A uim-fep                                  - Universal Input Method - front end processor      
i A uim-gtk2.0                               - Universal Input Method - GTK+2.x front end        
i A uim-gtk2.0-immodule                      - Universal Input Method - GTK+2.x IM-module        
i A uim-gtk3                                 - Universal Input Method - GTK+3.x front end        
i A uim-gtk3-immodule                        - Universal Input Method - GTK+3.x IM module        
i A uim-qt5                                  - Universal Input Method - Qt 5.x front end         
i A uim-qt5-immodule                         - Universal Input Method - Qt 5.x IM module         
i A uim-xim                                  - Universal Input Method - XIM compatibility interfa
I don't quite understand it.

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

#12 Post by Chrisdb »

luiznetto wrote:I did what you told me, and here is the result:

Code: Select all

luiz@debian:~$ aptitude search '?narrow(?installed, !?origin(debian))'
i A linux-headers-4.19.0-5-686-pae           - Header files for Linux 4.19.0-5-686-pae           
i A linux-headers-4.19.0-5-common            - Common header files for Linux 4.19.0-5            
i A linux-headers-686-pae                    - Header files for Linux 686-pae configuration (meta
i   linux-image-4.19.0-5-686                 - Linux 4.19 for older PCs (signed)                 
i   linux-image-686                          - Linux for older PCs (meta-package)                
i A uim                                      - Universal Input Method - main binary package      
i A uim-anthy                                - Universal Input Method - Anthy support metapackage
i A uim-data                                 - Universal Input Method - data files               
i A uim-fep                                  - Universal Input Method - front end processor      
i A uim-gtk2.0                               - Universal Input Method - GTK+2.x front end        
i A uim-gtk2.0-immodule                      - Universal Input Method - GTK+2.x IM-module        
i A uim-gtk3                                 - Universal Input Method - GTK+3.x front end        
i A uim-gtk3-immodule                        - Universal Input Method - GTK+3.x IM module        
i A uim-qt5                                  - Universal Input Method - Qt 5.x front end         
i A uim-qt5-immodule                         - Universal Input Method - Qt 5.x IM module         
i A uim-xim                                  - Universal Input Method - XIM compatibility interfa
I don't quite understand it.
Your kernel installation is all messed up. It would be wise to reinstall them from the main repo or just reinstall your system with the recommended apt repositories.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Suddenly not authorized to mount anything.

#13 Post by Head_on_a_Stick »

Packages installed from .debs would also show up on that list and the kernel versions look to be from Debian buster.

@OP: can we see

Code: Select all

apt policy linux-image-686 linux-image-4.19.0-5-686
deadbang

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

#14 Post by Chrisdb »

Head_on_a_Stick wrote:Packages installed from .debs would also show up on that list and the kernel versions look to be from Debian buster.

@OP: can we see

Code: Select all

apt policy linux-image-686 linux-image-4.19.0-5-686
Is mixing up kernel pae headers with the standard kernel version a good idea....?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Suddenly not authorized to mount anything.

#15 Post by Head_on_a_Stick »

The headers would only be used when compiling custom kernel modules and I don't think having more that one version installed would cause any problems (they have their own versioned directories).
deadbang

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#16 Post by luiznetto »

Do you believe I am being the victim of some kind of malware or something? By the way, I was surprised that Debian 10 doesn't install Clamav by default. Does it mean Buster has another way of dealing with viruses?

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

#17 Post by Chrisdb »

luiznetto wrote:Do you believe I am being the victim of some kind of malware or something? By the way, I was surprised that Debian 10 doesn't install Clamav by default. Does it mean Buster has another way of dealing with viruses?
That's why we recommend using the repos from Debian :D

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#18 Post by luiznetto »

By the way, I removed (what I think are) the offending entries from /etc/apt/sources.list. It looks like this now:

Code: Select all

# 

# deb cdrom:[Official Debian GNU/Linux Live 10.0.0 lxde 2019-07-06T11:17]/ buster main

#deb cdrom:[Official Debian GNU/Linux Live 10.0.0 lxde 2019-07-06T11:17]/ buster main

deb http://deb.debian.org/debian/ buster main
deb-src http://deb.debian.org/debian/ buster main

deb http://security.debian.org/debian-security buster/updates main
deb-src http://security.debian.org/debian-security buster/updates main

# buster-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ buster-updates main
deb-src http://deb.debian.org/debian/ buster-updates main

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

luiznetto
Posts: 67
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

#19 Post by luiznetto »

After this, I did

Code: Select all

Password: 
root@debian:/home/luiz# apt-get update
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease    
Get:4 https://www.deb-multimedia.org buster InRelease [19.5 kB]
Err:4 https://www.deb-multimedia.org buster InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117
Reading package lists... Done
W: GPG error: https://www.deb-multimedia.org buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117
E: The repository 'https://www.deb-multimedia.org buster InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
What does it mean
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117
and
W: GPG error: https://www.deb-multimedia.org buster InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5C808C2B65558117

Chrisdb
Posts: 279
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

#20 Post by Chrisdb »

Apt is still using your old repos

Do you have files under:

Code: Select all

/etc/apt/sources.list.d/

Post Reply