apt_ppa does not refresh package list (Try #2) #265

Closed
opened 2021-11-20 15:22:53 +00:00 by ungleich-gitea · 1 comment

Created by: fidian

When you try to use the following singleton, it installs the wrong version of node. I expect 0.10.x from the PPA and I get 0.6.x from the normal repository. I am using the current version of cdist from the git repository's master branch.

# custom/type/__nodejs
# This is a singleton
__apt_ppa ppa:chris-lea/node.js --state present
require="__apt_ppa/ppa:chris-lea/node.js" __package nodejs --state present

Executed in the following way:

cdist/bin/cdist config --conf-dir "$(pwd)/custom/" --verbose --initial-manifest custom/bug.sh \
--remote-copy "$(pwd)/bin/remote-copy" --remote-exec "$(pwd)/bin/remote-exec" localhost

The remote_copy and remote_exec scripts just use sudo for running commands. I'll probably issue a pull request with them in the future, but not quite yet.

In order to clean the environment and try again, you need to execute these commands:

sudo cdist/cdist/conf/type/__apt_ppa/files/remove-apt-repository ppa:chris-lea/nodejs
# That doesn't seem to clean up the files right so ...
sudo rm /etc/apt/sources.list.d/chris-lea-*
sudo dpkg --clear-avail
sudo apt-get update

This is the same as issue #175, but that one was closed and this one has a script so you can reproduce it.

*Created by: fidian* When you try to use the following singleton, it installs the wrong version of node. I expect 0.10.x from the PPA and I get 0.6.x from the normal repository. I am using the current version of cdist from the git repository's master branch. ``` # custom/type/__nodejs # This is a singleton __apt_ppa ppa:chris-lea/node.js --state present require="__apt_ppa/ppa:chris-lea/node.js" __package nodejs --state present ``` Executed in the following way: ``` cdist/bin/cdist config --conf-dir "$(pwd)/custom/" --verbose --initial-manifest custom/bug.sh \ --remote-copy "$(pwd)/bin/remote-copy" --remote-exec "$(pwd)/bin/remote-exec" localhost ``` The remote_copy and remote_exec scripts just use `sudo` for running commands. I'll probably issue a pull request with them in the future, but not quite yet. In order to clean the environment and try again, you need to execute these commands: ``` sudo cdist/cdist/conf/type/__apt_ppa/files/remove-apt-repository ppa:chris-lea/nodejs # That doesn't seem to clean up the files right so ... sudo rm /etc/apt/sources.list.d/chris-lea-* sudo dpkg --clear-avail sudo apt-get update ``` This is the same as issue #175, but that one was closed and this one has a script so you can reproduce it.
ungleich-gitea added the
Stale
label 2021-11-20 15:22:53 +00:00
Author
Owner

closed

closed
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#265
No description provided.