Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deb installation is broken with the new version with the "v" prefix #1760

Closed
vkuptcov opened this issue Oct 18, 2018 · 15 comments
Closed

Deb installation is broken with the new version with the "v" prefix #1760

vkuptcov opened this issue Oct 18, 2018 · 15 comments

Comments

@vkuptcov
Copy link

Problem statement

I have go-swagger installed from the debian package according to the instruction https://goswagger.io/install.html
I'm trying to update it and receive the next error:

$ sudo apt-get install swagger 
...
The following packages will be upgraded:
  swagger
1 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
...
dpkg: error processing archive /var/cache/apt/archives/swagger_v0.17.0_amd64.deb (--unpack):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 2 package 'swagger':
 error in 'Version' field string 'v0.17.0': version number does not start with digit
Errors were encountered while processing:
 /var/cache/apt/archives/swagger_v0.17.0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

It happens because the new version has the v prefix v0.17.0, and the previous does not: 0.16.0

Environment

swagger version: v.0.17.0
OS: Ubuntu 18.04

@AgrimPrasad
Copy link

Saw this issue too on our build. Should change the new version name to 0.17.0

@gregmarr
Copy link
Contributor

The v was added for compatibility with the new Go modules.

@casualjim
Copy link
Member

I'll update our build script so the debs end up with the expected format

@AgrimPrasad
Copy link

@casualjim Thanks, please let us know when it's fixed. We just re-tried the build and saw the same error again.

dpkg: error processing archive /tmp/apt-dpkg-install-7BKFfX/7-swagger_v0.17.0_amd64.deb (--unpack):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 2 package 'swagger':
 error in 'Version' field string 'v0.17.0': version number does not start with digit

@fredbi
Copy link
Contributor

fredbi commented Oct 29, 2018

Look for the latest release: on bintray, I can see the package name is now swagger_0.17.2_amd64.deb

@AgrimPrasad
Copy link

Thanks, can we also update the package name here? https://dl.bintray.com/go-swagger/goswagger-debian/

Because our build script runs the following:

echo "deb [trusted=yes] https://dl.bintray.com/go-swagger/goswagger-debian ubuntu main" | tee -a /etc/apt/sources.list &&

apt-get install -y swagger

@AgrimPrasad
Copy link

To clarify the comment above, I mean can we remove swagger_v0.17.0_amd64.deb from bintray?

@casualjim
Copy link
Member

I think i've done that now

@AgrimPrasad
Copy link

Thanks! Works great. I believe we can close this issue now.

@vkuptcov
Copy link
Author

I've just checked the new package 0.17.2 and it doesn't contain binary. And the package size a bit smaller than it should be:

/var/cache/apt/archives# ls -lah swagger_*
-rw-r--r-- 1 root root  996 окт 25 05:04 swagger_0.17.2_amd64.deb
-rw-r--r-- 1 root root 5,2M окт  7 06:34 swagger_v0.17.0_amd64.deb

@AgrimPrasad
Copy link

Yes sorry, I didn't check the new package earlier. It indeed doesn't contain the binary. Could it be checked again please?

@AgrimPrasad
Copy link

Any updates on the missing binary issue? Or should I create a separate issue for that?

@vkuptcov
Copy link
Author

vkuptcov commented Nov 8, 2018

I've just checked the package
https://dl.bintray.com/go-swagger/goswagger-debian/swagger_0.17.2_amd64.deb
The binary is still missed. And it's the latest package there.

@AgrimPrasad
Copy link

Created #1793 for the missing binary issue, as that's different from the issue title here, and the original issue mentioned here has indeed been fixed.

@casualjim
Copy link
Member

i've just updated the deb file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants