dpkg does not honour --root option

Bug #59282 reported by Carthik Sharma
4
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Fix Released
Medium
Ian Jackson

Bug Description

Binary package hint: dpkg

Originally reported using reportbug. Filing by proxy.

From: Ernst Kloppenburg <email address hidden>
To: Ubuntu Bug Tracking System <email address hidden>
Subject: dpkg does not honour --root option
Message-ID: <20060904204948.10933.84216.reportbug@localhost>
X-Mailer: reportbug 3.18ubuntu1
Date: Mon, 04 Sep 2006 22:49:48 +0200
X-Y-GMX-Trusted: 0

Package: dpkg
Version: 1.13.11ubuntu6
Severity: normal

Hello,

dpkg --root=/media/hda5 -l
should display the list of packages of the other debian installation
mounted at the given path

but instead it uses the package database of the installation it is
currently running in

E. Kloppenburg

-- System Information:
Debian Release: testing/unstable
  APT prefers dapper-updates
  APT policy: (500, 'dapper-updates'), (500, 'dapper-security'), (500, 'dapper')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-26-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages dpkg depends on:
ii coreutils 5.93-5ubuntu4 The GNU core utilities
ii libc6 2.3.6-0ubuntu20 GNU C Library: Shared libraries an

dpkg recommends no packages.

-- no debconf information

Revision history for this message
Ian Jackson (ijackson) wrote :

The bug seems to be that dpkg-query isn't passed --admindir. (I wonder why dpkg-query was invented and will have to read the changelog to find out ...)

Changed in dpkg:
assignee: nobody → ijackson
importance: Untriaged → Medium
status: Unconfirmed → Confirmed
Revision history for this message
Ian Jackson (ijackson) wrote :

This was fixed by Debian in 1.13.18 and is in Ubuntu edgy.

Changed in dpkg:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.