Removing deb packages from apt repository with reprepro

Clash Royale CLAN TAG#URR8PPP up vote
1
down vote
favorite
Problem Summary:
reprepro list stretch doesn't list any packages in my apt repository and reprepro remove stretch <package> doesn't delete any packages from my repository. How can I:
- Add packages so that
reprepro list stretchfinds them, or - Use
repreproto delete packages from my repo
The Environment:
I have a build machine with an apt repository on it. When I finish building, I install my package:
sudo reprepro -Vb /var/www/html/apt/debian
includedeb stretch
$build_dir/a320-latest-0.0.$SVN_REVISION-Linux.deb
Everything seems to work really well. I can apt-get install a320-latest from any client which has added my repository to their /etc/apt/sources.list.d/.
When I inspect further, I can confirm that I have several packages installed:
bob@apollo:/var/www/html/apt/debian$ tree pool
pool
âÂÂâÂÂâ main
âÂÂâÂÂâ a
âÂÂààâÂÂâÂÂâ a320
âÂÂààâÂÂààâÂÂâÂÂâ a320_0.0.571_amd64.deb
âÂÂààâÂÂâÂÂâ a320-latest
âÂÂààâÂÂâÂÂâ a320-latest_0.0.575_amd64.deb
âÂÂâÂÂâ h
âÂÂààâÂÂâÂÂâ helloworld
âÂÂààâÂÂâÂÂâ helloworld_0.2_amd64.deb
âÂÂâÂÂâ s
âÂÂâÂÂâ sim-dev
âÂÂààâÂÂâÂÂâ sim-dev_1.0_amd64.deb
âÂÂâÂÂâ sim-devenv
âÂÂààâÂÂâÂÂâ sim-devenv_1.0_amd64.deb
âÂÂâÂÂâ sim-runtime
âÂÂààâÂÂâÂÂâ sim-runtime_1.1_amd64.deb
âÂÂâÂÂâ sim-workstation
âÂÂâÂÂâ sim-workstation_1.0_amd64.deb
11 directories, 7 files
These also seem to be present in the repository registry:
bob@apollo:/var/www/html/apt/debian$ cat dists/stretch/main/binary-amd64/Packages | grep Package:
Package: a320
Package: a320-latest
Package: helloworld
Package: sim-dev
Package: sim-devenv
Package: sim-runtime
Package: sim-workstation
Expected workflow:
I would like to delete pool/main/a/a320 and pool/main/h/helloworld.
I've tried:
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list stretch
bob@apollo:/var/www/html/apt/debian$ sudo reprepro remove stretch a320
Not removed as not found: a320
Exporting indices...
I expected reprepro list stretch would list my packages, and reprepro remove stretch a320 would remove the a320 package. But that doesn't seem to do anything.
I was tempted to just delete the *.deb files, and the entries in ./dists/.../Packages manually, but I suspect that this will destroy some checksums and destroy the repository. It would probably also put ./dists out of sync with ./db which contains some binary objects (SQLite?).
I also tried reprepro export stretch and reprepro update stretch but they didn't seem to do anything.
At least something is working
Everything is great for the client right now.
Also, I can confrm that reprepro finds the stretch repository, otherwise it would give one of these errors:
bob@apollo:/var/www/html/apt$ sudo reprepro list stretch
Error opening config file './conf/distributions': No such file or directory(2)
There have been errors!
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list wheezy
Cannot find definition of distribution 'wheezy'!
There have been errors!
apt package-management reprepro
add a comment |Â
up vote
1
down vote
favorite
Problem Summary:
reprepro list stretch doesn't list any packages in my apt repository and reprepro remove stretch <package> doesn't delete any packages from my repository. How can I:
- Add packages so that
reprepro list stretchfinds them, or - Use
repreproto delete packages from my repo
The Environment:
I have a build machine with an apt repository on it. When I finish building, I install my package:
sudo reprepro -Vb /var/www/html/apt/debian
includedeb stretch
$build_dir/a320-latest-0.0.$SVN_REVISION-Linux.deb
Everything seems to work really well. I can apt-get install a320-latest from any client which has added my repository to their /etc/apt/sources.list.d/.
When I inspect further, I can confirm that I have several packages installed:
bob@apollo:/var/www/html/apt/debian$ tree pool
pool
âÂÂâÂÂâ main
âÂÂâÂÂâ a
âÂÂààâÂÂâÂÂâ a320
âÂÂààâÂÂààâÂÂâÂÂâ a320_0.0.571_amd64.deb
âÂÂààâÂÂâÂÂâ a320-latest
âÂÂààâÂÂâÂÂâ a320-latest_0.0.575_amd64.deb
âÂÂâÂÂâ h
âÂÂààâÂÂâÂÂâ helloworld
âÂÂààâÂÂâÂÂâ helloworld_0.2_amd64.deb
âÂÂâÂÂâ s
âÂÂâÂÂâ sim-dev
âÂÂààâÂÂâÂÂâ sim-dev_1.0_amd64.deb
âÂÂâÂÂâ sim-devenv
âÂÂààâÂÂâÂÂâ sim-devenv_1.0_amd64.deb
âÂÂâÂÂâ sim-runtime
âÂÂààâÂÂâÂÂâ sim-runtime_1.1_amd64.deb
âÂÂâÂÂâ sim-workstation
âÂÂâÂÂâ sim-workstation_1.0_amd64.deb
11 directories, 7 files
These also seem to be present in the repository registry:
bob@apollo:/var/www/html/apt/debian$ cat dists/stretch/main/binary-amd64/Packages | grep Package:
Package: a320
Package: a320-latest
Package: helloworld
Package: sim-dev
Package: sim-devenv
Package: sim-runtime
Package: sim-workstation
Expected workflow:
I would like to delete pool/main/a/a320 and pool/main/h/helloworld.
I've tried:
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list stretch
bob@apollo:/var/www/html/apt/debian$ sudo reprepro remove stretch a320
Not removed as not found: a320
Exporting indices...
I expected reprepro list stretch would list my packages, and reprepro remove stretch a320 would remove the a320 package. But that doesn't seem to do anything.
I was tempted to just delete the *.deb files, and the entries in ./dists/.../Packages manually, but I suspect that this will destroy some checksums and destroy the repository. It would probably also put ./dists out of sync with ./db which contains some binary objects (SQLite?).
I also tried reprepro export stretch and reprepro update stretch but they didn't seem to do anything.
At least something is working
Everything is great for the client right now.
Also, I can confrm that reprepro finds the stretch repository, otherwise it would give one of these errors:
bob@apollo:/var/www/html/apt$ sudo reprepro list stretch
Error opening config file './conf/distributions': No such file or directory(2)
There have been errors!
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list wheezy
Cannot find definition of distribution 'wheezy'!
There have been errors!
apt package-management reprepro
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Problem Summary:
reprepro list stretch doesn't list any packages in my apt repository and reprepro remove stretch <package> doesn't delete any packages from my repository. How can I:
- Add packages so that
reprepro list stretchfinds them, or - Use
repreproto delete packages from my repo
The Environment:
I have a build machine with an apt repository on it. When I finish building, I install my package:
sudo reprepro -Vb /var/www/html/apt/debian
includedeb stretch
$build_dir/a320-latest-0.0.$SVN_REVISION-Linux.deb
Everything seems to work really well. I can apt-get install a320-latest from any client which has added my repository to their /etc/apt/sources.list.d/.
When I inspect further, I can confirm that I have several packages installed:
bob@apollo:/var/www/html/apt/debian$ tree pool
pool
âÂÂâÂÂâ main
âÂÂâÂÂâ a
âÂÂààâÂÂâÂÂâ a320
âÂÂààâÂÂààâÂÂâÂÂâ a320_0.0.571_amd64.deb
âÂÂààâÂÂâÂÂâ a320-latest
âÂÂààâÂÂâÂÂâ a320-latest_0.0.575_amd64.deb
âÂÂâÂÂâ h
âÂÂààâÂÂâÂÂâ helloworld
âÂÂààâÂÂâÂÂâ helloworld_0.2_amd64.deb
âÂÂâÂÂâ s
âÂÂâÂÂâ sim-dev
âÂÂààâÂÂâÂÂâ sim-dev_1.0_amd64.deb
âÂÂâÂÂâ sim-devenv
âÂÂààâÂÂâÂÂâ sim-devenv_1.0_amd64.deb
âÂÂâÂÂâ sim-runtime
âÂÂààâÂÂâÂÂâ sim-runtime_1.1_amd64.deb
âÂÂâÂÂâ sim-workstation
âÂÂâÂÂâ sim-workstation_1.0_amd64.deb
11 directories, 7 files
These also seem to be present in the repository registry:
bob@apollo:/var/www/html/apt/debian$ cat dists/stretch/main/binary-amd64/Packages | grep Package:
Package: a320
Package: a320-latest
Package: helloworld
Package: sim-dev
Package: sim-devenv
Package: sim-runtime
Package: sim-workstation
Expected workflow:
I would like to delete pool/main/a/a320 and pool/main/h/helloworld.
I've tried:
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list stretch
bob@apollo:/var/www/html/apt/debian$ sudo reprepro remove stretch a320
Not removed as not found: a320
Exporting indices...
I expected reprepro list stretch would list my packages, and reprepro remove stretch a320 would remove the a320 package. But that doesn't seem to do anything.
I was tempted to just delete the *.deb files, and the entries in ./dists/.../Packages manually, but I suspect that this will destroy some checksums and destroy the repository. It would probably also put ./dists out of sync with ./db which contains some binary objects (SQLite?).
I also tried reprepro export stretch and reprepro update stretch but they didn't seem to do anything.
At least something is working
Everything is great for the client right now.
Also, I can confrm that reprepro finds the stretch repository, otherwise it would give one of these errors:
bob@apollo:/var/www/html/apt$ sudo reprepro list stretch
Error opening config file './conf/distributions': No such file or directory(2)
There have been errors!
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list wheezy
Cannot find definition of distribution 'wheezy'!
There have been errors!
apt package-management reprepro
Problem Summary:
reprepro list stretch doesn't list any packages in my apt repository and reprepro remove stretch <package> doesn't delete any packages from my repository. How can I:
- Add packages so that
reprepro list stretchfinds them, or - Use
repreproto delete packages from my repo
The Environment:
I have a build machine with an apt repository on it. When I finish building, I install my package:
sudo reprepro -Vb /var/www/html/apt/debian
includedeb stretch
$build_dir/a320-latest-0.0.$SVN_REVISION-Linux.deb
Everything seems to work really well. I can apt-get install a320-latest from any client which has added my repository to their /etc/apt/sources.list.d/.
When I inspect further, I can confirm that I have several packages installed:
bob@apollo:/var/www/html/apt/debian$ tree pool
pool
âÂÂâÂÂâ main
âÂÂâÂÂâ a
âÂÂààâÂÂâÂÂâ a320
âÂÂààâÂÂààâÂÂâÂÂâ a320_0.0.571_amd64.deb
âÂÂààâÂÂâÂÂâ a320-latest
âÂÂààâÂÂâÂÂâ a320-latest_0.0.575_amd64.deb
âÂÂâÂÂâ h
âÂÂààâÂÂâÂÂâ helloworld
âÂÂààâÂÂâÂÂâ helloworld_0.2_amd64.deb
âÂÂâÂÂâ s
âÂÂâÂÂâ sim-dev
âÂÂààâÂÂâÂÂâ sim-dev_1.0_amd64.deb
âÂÂâÂÂâ sim-devenv
âÂÂààâÂÂâÂÂâ sim-devenv_1.0_amd64.deb
âÂÂâÂÂâ sim-runtime
âÂÂààâÂÂâÂÂâ sim-runtime_1.1_amd64.deb
âÂÂâÂÂâ sim-workstation
âÂÂâÂÂâ sim-workstation_1.0_amd64.deb
11 directories, 7 files
These also seem to be present in the repository registry:
bob@apollo:/var/www/html/apt/debian$ cat dists/stretch/main/binary-amd64/Packages | grep Package:
Package: a320
Package: a320-latest
Package: helloworld
Package: sim-dev
Package: sim-devenv
Package: sim-runtime
Package: sim-workstation
Expected workflow:
I would like to delete pool/main/a/a320 and pool/main/h/helloworld.
I've tried:
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list stretch
bob@apollo:/var/www/html/apt/debian$ sudo reprepro remove stretch a320
Not removed as not found: a320
Exporting indices...
I expected reprepro list stretch would list my packages, and reprepro remove stretch a320 would remove the a320 package. But that doesn't seem to do anything.
I was tempted to just delete the *.deb files, and the entries in ./dists/.../Packages manually, but I suspect that this will destroy some checksums and destroy the repository. It would probably also put ./dists out of sync with ./db which contains some binary objects (SQLite?).
I also tried reprepro export stretch and reprepro update stretch but they didn't seem to do anything.
At least something is working
Everything is great for the client right now.
Also, I can confrm that reprepro finds the stretch repository, otherwise it would give one of these errors:
bob@apollo:/var/www/html/apt$ sudo reprepro list stretch
Error opening config file './conf/distributions': No such file or directory(2)
There have been errors!
bob@apollo:/var/www/html/apt/debian$ sudo reprepro list wheezy
Cannot find definition of distribution 'wheezy'!
There have been errors!
apt package-management reprepro
apt package-management reprepro
edited Feb 28 at 11:32
asked Feb 28 at 10:58
Stewart
1276
1276
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
You have part of your solution right there in your question:
you have to tell reprepo where to look!
sudo reprepro -Vb /var/www/html/apt/debian list stretch
and
sudo reprepro -Vb /var/www/html/apt/debian remove stretch a320
should do the trick.
Perfect answer thanks! I assumed that reprepro assumed-bwas$(pwd)if unspecified. This really cleared things up.
â Stewart
Mar 6 at 9:19
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
You have part of your solution right there in your question:
you have to tell reprepo where to look!
sudo reprepro -Vb /var/www/html/apt/debian list stretch
and
sudo reprepro -Vb /var/www/html/apt/debian remove stretch a320
should do the trick.
Perfect answer thanks! I assumed that reprepro assumed-bwas$(pwd)if unspecified. This really cleared things up.
â Stewart
Mar 6 at 9:19
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
add a comment |Â
up vote
1
down vote
accepted
You have part of your solution right there in your question:
you have to tell reprepo where to look!
sudo reprepro -Vb /var/www/html/apt/debian list stretch
and
sudo reprepro -Vb /var/www/html/apt/debian remove stretch a320
should do the trick.
Perfect answer thanks! I assumed that reprepro assumed-bwas$(pwd)if unspecified. This really cleared things up.
â Stewart
Mar 6 at 9:19
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
You have part of your solution right there in your question:
you have to tell reprepo where to look!
sudo reprepro -Vb /var/www/html/apt/debian list stretch
and
sudo reprepro -Vb /var/www/html/apt/debian remove stretch a320
should do the trick.
You have part of your solution right there in your question:
you have to tell reprepo where to look!
sudo reprepro -Vb /var/www/html/apt/debian list stretch
and
sudo reprepro -Vb /var/www/html/apt/debian remove stretch a320
should do the trick.
edited Mar 6 at 18:13
Stewart
1276
1276
answered Feb 28 at 14:21
Robert Riedl
2,740623
2,740623
Perfect answer thanks! I assumed that reprepro assumed-bwas$(pwd)if unspecified. This really cleared things up.
â Stewart
Mar 6 at 9:19
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
add a comment |Â
Perfect answer thanks! I assumed that reprepro assumed-bwas$(pwd)if unspecified. This really cleared things up.
â Stewart
Mar 6 at 9:19
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
Perfect answer thanks! I assumed that reprepro assumed
-b was $(pwd) if unspecified. This really cleared things up.â Stewart
Mar 6 at 9:19
Perfect answer thanks! I assumed that reprepro assumed
-b was $(pwd) if unspecified. This really cleared things up.â Stewart
Mar 6 at 9:19
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
Glas I was able to help !
â Robert Riedl
Mar 6 at 10:15
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1010612%2fremoving-deb-packages-from-apt-repository-with-reprepro%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password