Suddenly not authorized to mount anything.

If none of the more specific forums is the right place to ask

Suddenly not authorized to mount anything.

Postby luiznetto » 2020-01-15 19:43

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.
luiznetto
 
Posts: 66
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

Postby Chrisdb » 2020-01-16 05:50

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
Chrisdb
 
Posts: 226
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

Postby Head_on_a_Stick » 2020-01-16 15:04

Which desktop is this?

And we should probably see
Code: Select all
apt policy
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Suddenly not authorized to mount anything.

Postby luiznetto » 2020-01-17 00:40

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.
luiznetto
 
Posts: 66
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

Postby Head_on_a_Stick » 2020-01-18 11:29

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.
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Suddenly not authorized to mount anything.

Postby luiznetto » 2020-01-18 23:10

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:
luiznetto
 
Posts: 66
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

Postby Chrisdb » 2020-01-19 07:49

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.
Chrisdb
 
Posts: 226
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

Postby luiznetto » 2020-01-20 17:01

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?
luiznetto
 
Posts: 66
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

Postby peter_irich » 2020-01-20 17:32

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
peter_irich
 
Posts: 1268
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: Suddenly not authorized to mount anything.

Postby Head_on_a_Stick » 2020-01-20 19:16

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.
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Suddenly not authorized to mount anything.

Postby luiznetto » 2020-01-20 21:07

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.
luiznetto
 
Posts: 66
Joined: 2013-11-26 18:40

Re: Suddenly not authorized to mount anything.

Postby Chrisdb » 2020-01-21 06:27

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.
Chrisdb
 
Posts: 226
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

Postby Head_on_a_Stick » 2020-01-21 10:06

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
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Suddenly not authorized to mount anything.

Postby Chrisdb » 2020-01-21 10:17

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....?
Chrisdb
 
Posts: 226
Joined: 2018-04-10 07:16

Re: Suddenly not authorized to mount anything.

Postby Head_on_a_Stick » 2020-01-21 10:32

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).
User avatar
Head_on_a_Stick
 
Posts: 11114
Joined: 2014-06-01 17:46
Location: /dev/chair

Next

Return to General Questions

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable