Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reprepro adding same deb package

I got a problem in my debian repo. I removed a wrong package with:

reprepro -Vb . remove package

This was ok, but when I tried to add again the same package with next command:

reprepro -Vb . includedeb squeeze package

I got the next output:

Already existing files can only be included again, if they are the same, but:
md5 expected: 1035762e5e21e6ad8689660c0032f42d, got: 77ea3b094fcbfca4110afb5a9af0d2cb
sha1 expected: e41527e49bee98a59b3a5e16fbe856bb15a836bd, got: 5c6b673e5f11f1a80201e76d0fa4ba1d5935f095
sha256 expected: ae795de3b2d62f513b634a00c4bec74c90d2a6f750e5ec0386ee2b7775af39ec, got: 1531b2dd1869214afe58bb526fa8bda70db1bd1ef73d133bde002d42f147a041
size expected: 327748, got: 253398
There have been errors!

Anyone know how could I fix this? I have been checking the reprepro man and I didn't find the solution to solve this situation.

like image 319
ki0 Avatar asked Mar 06 '13 09:03

ki0


People also ask

How many tar files are included in a .deb file?

DEB File Format A DEB file consists of two TAR archive files. One archive holds the control information and another contains the installable data.

What does a deb package contain?

What is the format of a Debian binary package? A Debian "package", or a Debian archive file, contains the executable files, libraries, and documentation associated with a particular suite of program or set of related programs. Normally, a Debian archive file has a filename that ends in . deb .

What is Reprepo?

Reprepro is a tool for managing APT repositories. Reprepro is able to manage multiple repositories for multiple distribution versions and one package pool.


1 Answers

Your first command shouldn't have worked; remove requires the codename of the distribution from which you want to remove that package.

Assuming this was just a mispaste, and that you gave "squeeze" to the remove command like you did for the includedeb, you most likely still have the same package in a different distribution. Reprepro tries to enforce the debian ideal of "packages with the same name and exact same version have the exact same contents", no matter which distro they were first released in.

You can do reprepro ls $package to see where it might still be located. Once you find it, the right thing to do would be to reprepro copy it back into squeeze from the other place.

like image 181
the paul Avatar answered Sep 19 '22 21:09

the paul