apt-get dist-upgrade is overwriting compiled packages

Bug #744879 reported by Removed by request
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: apt

I have compiled Firefox with apt-get source firefox --build. After this I installed the created .deb package I made an apt-get dist-upgrade. apt said that there is a newer package of firefox but the packages has the same name. apt shouldn't overwrite compiled packages if both are the same version. I'm using Ubuntu 11.04 dev with apt 0.8.13ubuntu2.

Revision history for this message
David Kalnischkies (donkult) wrote :

Thats done on propose. If you don't like it, just hold the package back, pin it or give it a different version.

Changed in apt (Ubuntu):
status: New → Invalid
Revision history for this message
Indra Ginanjar (indraginanjar) wrote :

I had quite similar issue with my custom build squid3 (apt-get source).
If i'm using apt-get upgrade, my squid3 will be overwritten by the one from repo.

After reading your comment, i understand it, so i've lock the version with synaptic by using
Package - Lock Version

Still i have a question, how to do that in command line?

Revision history for this message
Indra Ginanjar (indraginanjar) wrote :

After testing, i'm going to revising my previous comment,
The truth is,
Package - Lock Version on Synaptic is only works for Synaptic only.

To prevent upgrading version by apt-get upgrade and Update Manager,

        echo "squid3 hold" | sudo dpkg --set-selections

After doing that apt-get upgrade, is saying

        The following packages have been kept back:
          squid3

Update Manager is still showing squid3 but it's uncheckable

Well this satisfy me.. \(^ ^)/

Note:
1) To cancel holding version, i'm using
        echo "squid3 install" | sudo dpkg --set-selections
2) I found really usefull infos here, http://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package

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.