fix ln, upg-repos