Bug 1044995 - dnf should bailout when running install/update as non root
Summary: dnf should bailout when running install/update as non root
Keywords:
Status: CLOSED DUPLICATE of bug 910133
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-19 12:07 UTC by Tim Lauridsen
Modified: 2013-12-19 14:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-19 12:18:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tim Lauridsen 2013-12-19 12:07:29 UTC
Description of problem:

when dnf is executed as a non-root user, it bails out very late before applying the transaction.

Version-Release number of selected component (if applicable):
dnf-0:0.4.9-1.fc20.noarch

How reproducible:
every time

Steps to Reproduce:
1. dnf install btanks (as non root user)
2.
3.

Actual results:

$ dnf install ninja-ide
determining the fastest mirror (138 hosts).. done.
Fedora 20 - i386                                2.4 MB/s |  33 MB     00:13    
google-chrome                                    38 kB/s | 3.1 kB     00:00    
determining the fastest mirror (10 hosts).. done.
Fedora 20 - i386 - Updates                       66 kB/s | 4.1 MB     01:03    
Problem with repo 'Dropbox': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.
Copr repo for yumex-nextgen owned by timlau     2.6 kB/s | 1.7 kB     00:00    
Resolving dependencies
--> Starting dependency resolution
---> Package ninja-ide.noarch 2.3-2.fc20 will be installed
---> Package python-inotify.noarch 0.9.4-4.fc20 will be installed
---> Package PyQt4.i686 4.10.2-5.fc20 will be installed
---> Package phonon.i686 4.7.0-8.fc20 will be installed
---> Package qtwebkit.i686 2.3.3-1.fc20 will be installed
---> Package sip.i686 4.14.7-2.fc20 will be installed
---> Package kde-filesystem.i686 4-46.fc20 will be installed
---> Package libqzeitgeist.i686 0.8.0-10.fc20 will be installed
---> Package phonon-backend-gstreamer.i686 2:4.7.0-3.fc20 will be installed
---> Package qt-mobility.i686 1.2.2-0.5.20120224git.fc20 will be installed
---> Package python-setuptools.noarch 1.4-1.fc20 will be installed
---> Package python-backports-ssl_match_hostname.noarch 3.4.0.2-1.fc20 will be installed
---> Package python-backports.i686 1.0-3.fc20 will be installed
--> Finished dependency resolution
Dependencies resolved.

================================================================================
 Package                        Arch   Version                    Repository
                                                                           Size
================================================================================
Installing:
 ninja-ide                      noarch 2.3-2.fc20                 fedora  861 k
 python-inotify                 noarch 0.9.4-4.fc20               fedora   49 k
 PyQt4                          i686   4.10.2-5.fc20              updates 2.7 M
 phonon                         i686   4.7.0-8.fc20               fedora  222 k
 qtwebkit                       i686   2.3.3-1.fc20               fedora   10 M
 sip                            i686   4.14.7-2.fc20              fedora  121 k
 kde-filesystem                 i686   4-46.fc20                  fedora   48 k
 libqzeitgeist                  i686   0.8.0-10.fc20              fedora   74 k
 phonon-backend-gstreamer       i686   2:4.7.0-3.fc20             fedora  147 k
 qt-mobility                    i686   1.2.2-0.5.20120224git.fc20 fedora  3.1 M
 python-setuptools              noarch 1.4-1.fc20                 updates 412 k
 python-backports-ssl_match_hostname
                                noarch 3.4.0.2-1.fc20             fedora   12 k
 python-backports               i686   1.0-3.fc20                 fedora  4.8 k

Transaction Summary
================================================================================
Install  13 Packages

Total download size: 18 M
Installed size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/13): python-inotify-0.9.4-4.fc20.noarch.rpm  362 kB/s |  49 kB     00:00    
(2/13): phonon-4.7.0-8.fc20.i686.rpm            1.2 MB/s | 222 kB     00:00    
(3/13): ninja-ide-2.3-2.fc20.noarch.rpm         1.5 MB/s | 861 kB     00:00    
(4/13): sip-4.14.7-2.fc20.i686.rpm              765 kB/s | 121 kB     00:00    
(5/13): kde-filesystem-4-46.fc20.i686.rpm       594 kB/s |  48 kB     00:00    
(6/13): libqzeitgeist-0.8.0-10.fc20.i686.rpm    925 kB/s |  74 kB     00:00    
(7/13): phonon-backend-gstreamer-4.7.0-3.fc20.i 1.3 MB/s | 147 kB     00:00    
(8/13): qt-mobility-1.2.2-0.5.20120224git.fc20. 2.0 MB/s | 3.1 MB     00:01    
(9/13): qtwebkit-2.3.3-1.fc20.i686.rpm          1.8 MB/s |  10 MB     00:05    
(10/13): python-backports-ssl_match_hostname-3.  11 kB/s |  12 kB     00:01    
(11/13): python-backports-1.0-3.fc20.i686.rpm   4.6 kB/s | 4.8 kB     00:01    
(12/13): python-setuptools-1.4-1.fc20.noarch.rp  13 kB/s | 412 kB     00:30    
(13/13): PyQt4-4.10.2-5.fc20.i686.rpm            71 kB/s | 2.7 MB     00:39    
--------------------------------------------------------------------------------
Total                                           441 kB/s |  18 MB     00:41     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Unable to initialize yumdb history: [Errno 13] Permission denied: '//var/lib/dnf'

Expected results:
Like yum does it 

$ yum install ninje-ide
Loaded plugins: langpacks
You need to be root to perform this command.

Additional info:

Comment 1 Ales Kozumplik 2013-12-19 12:18:20 UTC
Hi Tim, there's been many people complaining about this, please see bug 910133 for the details. tldr; version is despite me not liking it too much for good reasons, we will provide a plugin that does what is requested. People then can turn it or on off.

*** This bug has been marked as a duplicate of bug 910133 ***

Comment 2 Tim Lauridsen 2013-12-19 14:06:45 UTC
Not a big problem for me, just stumpled across it and reported it.
A plugin is a ok way to do it.


Note You need to log in before you can comment on or make changes to this bug.