pop-os / default-settings

Distribution Default Settings
Other
44 stars 16 forks source link

fix: Set the default repolib mirror to SYS_REPO #103

Closed isantop closed 4 years ago

isantop commented 4 years ago

This ensures that users can reset their mirrors to the default if they accidentally break something. Also adds repolib as a dependency, for performing the installation.

Requires pop-os/repolib#23

jacobgkau commented 4 years ago

I'm having some trouble getting this package to update (looks related to the new dependency on python3-repolib):

pop-default-settings : Depends: python3-repolib (>= 1.4.0) but 1.4.0~1602708569~20.10~25c6b1a is to be installed

apt policy python3-repolib shows:

python3-repolib:
  Installed: 1.4.0~1602708569~20.10~25c6b1a
  Candidate: 1.4.0~1602708569~20.10~25c6b1a
  Version table:
 *** 1.4.0~1602708569~20.10~25c6b1a 1002
       1002 http://apt.pop-os.org/staging/system-default-mirror groovy/main amd64 Packages
       1002 http://apt.pop-os.org/staging/system-default-mirror groovy/main i386 Packages
        100 /var/lib/dpkg/status
     1.2.0~1602011872~20.10~d5a346e 1001
       1001 http://ppa.launchpad.net/system76/pop/ubuntu groovy/main amd64 Packages
       1001 http://ppa.launchpad.net/system76/pop/ubuntu groovy/main i386 Packages

Not sure what's going on with the version comparison. Debian policy says that ~ is sorted before "the empty part"? (Edit: seems to be confirmed in one of the footnotes. Maybe >1.3.9 would work better?)

isantop commented 4 years ago

We'll need to wait for it to be released, or need to add the master staging repo.

Also, pop-os/repolib#23 needs to be merged first.

isantop commented 4 years ago

@jacobgkau I'm not exactly sure why Debian thinks 1.4.0~1602708569~20.10~25c6b1a is not equal to or newer than 1.4.0, but I've updated the dependency to make it work now.

isantop commented 4 years ago

@jacobgkau It looks like this branch built for groovy

jacobgkau commented 4 years ago

@isantop The problem was not this branch being built for Groovy, the problem was this branch requiring Repolib <1.3.9 and the master branch of Repolib (1.4.0) not being built for Groovy. It's still not built.

image

Earlier, I was trying to add https://github.com/pop-os/repolib/pull/23 and this branch at the same time (which should have worked), but since https://github.com/pop-os/repolib/pull/23 is merged and its branch deleted, master needs to build for Groovy now.