snapcraft copies /etc/apt/sources but ignores /etc/apt/preferences

Bug #1638840 reported by Albert Astals Cid
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

This means that if you have a somewhat complex setup, you will end up with snapcraft getting the wrong packages since the preferences file will be ignored

Revision history for this message
Leo Arias (elopio) wrote :

Thanks for the report Albert. Can you please add some steps to reproduce the problem?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Albert Astals Cid (aacid) wrote :

Step 1: Be on zesty
Step 2: Add yakkety to your apt/sources.list
  i.e. i added
    deb http://bouyguestelecom.ubuntu.lafibre.info/ubuntu/ yakkety main restricted universe multiverse
Step 3: Have this preferences file http://paste.ubuntu.com/23445636/

This means that now if you apt-get install vim on a system were it was previously uninstalled, version 7.4.1829-1ubuntu2 from yakkety will be installed instead of version 7.4.1829-1ubuntu4 from zesty even if zesty one is newer.

Now if you make a snap that wants to package vim, since the preferences file is ignored the zesty version will be picked up.

Now imagine that instead of vim it's a library and for some weird reason my snap depends on an old version or something.

Changed in snapcraft:
status: Incomplete → New
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.