Public bug reported: Binary package hint: synaptic
When adding a new repository from Synaptic in the following fashion... 1. Open menu item "Settings > Repositories". 2. Open tab "Other Software". 3. Click the "Add" button, enter an APT line, then click button "Add Source". ...the user's umask is applied to the resultant sources.list file in /etc/apt/sources.list.d, when the permission of a sources.list file should be world-readable regardless of the user's umask. If the user's umask is 077, then the resultant sources list is readable only by root. This in turn causes UpdateManager to place an error icon in gnome-panel's notification area. The error icon gives this message: <quote> Could not initialize the package information An unresolvable problem occurred while initializing the package information. Please report this bug against the 'update-manager' package and include the following error message: 'E:Opening /etc/apt/sources.list.d/mercurial-ppa-stable-snapshots-karmic.list - ifstream::ifstream (13: Permission denied), E:The list of sources could not be read.' </quote> Also, I believe this a copy of Bug #426191 and Bug #426192. I'm not certain, though, because those bug reports are in German. Steps to reproduce: 1. Place the following line in ~/.profile: umask 077 2. Log out, then log in again. 3. Follow the above steps to add a new repository (for example, ppa:mercurial-ppa/stable-snapshots). 4. Click the Reload button, as prompted by Synaptic. 5. Observe the error message produced by UpdateManager in the notification area. 6. Execute `ls -l /etc/apt/sources.list.d`, and observe that the offending *.list file has ownership/permissions: -rw------- root root Thank you for your time! ProblemType: Bug Architecture: amd64 Date: Mon Jan 4 16:22:24 2010 DistroRelease: Ubuntu 9.10 ExecutablePath: /usr/sbin/synaptic InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027) Package: synaptic 0.62.7ubuntu6 ProcEnviron: PATH=(custom, no user) LANG=en_US.UTF-8 SHELL=/bin/bash ProcVersionSignature: Ubuntu 2.6.31-16.53-generic SourcePackage: synaptic Uname: Linux 2.6.31-16-generic x86_64 ** Affects: synaptic (Ubuntu) Importance: Undecided Status: New ** Tags: apport-bug synaptic update-manager -- User's umask is applied to newly added repo lists https://bugs.launchpad.net/bugs/503171 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs