Cannot install swift-account on the same machine with swift-proxy

Bug #796404 reported by guanxiaohua2k6
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Won't Fix
Undecided
Unassigned

Bug Description

I tried to install swift all in one. But I met the following error when I tried to execute "sudo apt-get install swift-account".

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  swift-account
0 upgraded, 1 newly installed, 0 to remove and 19 not upgraded.
Need to get 0 B/7,626 B of archives.
After this operation, 115 kB of additional disk space will be used.
(Reading database ... 80338 files and directories currently installed.)
Unpacking swift-account (from .../swift-account_1.3.0-0ubuntu1_all.deb) ...
dpkg: error processing /var/cache/apt/archives/swift-account_1.3.0-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/bin/swift-account-audit', which is also in package swift 1.3.0-0ubuntu1
Errors were encountered while processing:
 /var/cache/apt/archives/swift-account_1.3.0-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
gholt (gholt) wrote :

I believe this was a problem with (some?) of the 1.3 releases. It's probably easiest to just install the latest stable 1.4 release from https://launchpad.net/~swift-core/+archive/release

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) wrote :

Thank you, gholt. I tried the 1.4, but it failed too.

Revision history for this message
gholt (gholt) wrote :

That's pretty odd:

$ wget 'https://launchpad.net/~swift-core/+archive/release/+files/swift_1.4.0-0ubuntu0%7Eppa1%7Elucid1_all.deb'

$ wget 'https://launchpad.net/~swift-core/+archive/release/+files/swift-account_1.4.0-0ubuntu0%7Eppa1%7Elucid1_all.deb'

$ dpkg --contents swift_1.4.0-0ubuntu0~ppa1~lucid1_all.deb | grep '\<swift-account-audit\>'
-rwxr-xr-x root/root 15523 2011-06-10 12:43 ./usr/bin/swift-account-audit

$ dpkg --contents swift-account_1.4.0-0ubuntu0~ppa1~lucid1_all.deb | grep '\<swift-account-audit\>'

$

That shows that the swift-account package has no swift-account-audit file in it, which is correct, it is only in the swift package in 1.4.

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) wrote :

Thanks. I did something wrong here. It is ok with swift 1.4.

BTW, will you fix it in swift 1.3?

Revision history for this message
gholt (gholt) wrote :

Well, I'm not the packager, but I'll try to assign this bug to who I think is.

Changed in swift:
assignee: nobody → Soren Hansen (soren)
Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) wrote :

If I used ppa:openstack-release/2011.2 to install swift on ubuntu10.10 servers, there was no error. And if I used ppa:openstack-release/2011.2 to install swift on ubuntu11.04 servers, the error occurred.

BTW, I found the content of "http://ppa.launchpad.net/openstack-release/2011.2/ubuntu/dists/natty/main/binary-amd64/Packages" was empty. It seemed that there was something wrong when creating ppa:openstack-release/2011.2 for ubuntu11.04.

Soren Hansen (soren)
Changed in swift:
assignee: Soren Hansen (soren) → nobody
Changed in swift:
status: New → Triaged
Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

We are in process to remove the swift ppa and move over distro packages (i.e: ubuntu shipped ones) which should be reported/fixed there.

Changed in swift:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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