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

Can't synchronize Ubuntu #20

Open
Bischoff opened this issue Apr 30, 2020 · 7 comments
Open

Can't synchronize Ubuntu #20

Bischoff opened this issue Apr 30, 2020 · 7 comments
Labels

Comments

@Bischoff
Copy link

Bischoff commented Apr 30, 2020

Ubuntu can't be synchronized with minima:

2020/04/30 00:22:40 Processing repo: http://ubuntu.mirror.frontiernet.net/ubuntu/dists/bionic-updates/main/binary-amd64/
2020/04/30 00:22:40 First-time sync started
2020/04/30 00:22:40 Downloading repomd.xml...
2020/04/30 00:22:41 Downloading Release...
2020/04/30 00:22:41 Downloading Release.gpg...
2020/04/30 00:22:41 Got 404, ignoring...
2020/04/30 00:22:41 Missing SHA256 entry in Release file

Same on mirror.23media.com. It seems to be general.

@Bischoff Bischoff changed the title Can't synchronize with Ubuntu mirror Can't synchronize Ubuntu Apr 30, 2020
@Bischoff
Copy link
Author

Bischoff commented Apr 30, 2020

After speaking with @cbosdo, it appeared it is a known problem.

Workaround is currently to use apt-mirror instead of minima.

Feel free to add "feature" label.

@cbosdo cbosdo added the feature label Apr 30, 2020
@atighineanu
Copy link

That Repo looks to be empty. http://ubuntu.mirror.frontiernet.net/ubuntu/dists/bionic-updates/main/binary-amd64/
The issue is that the parser (in syncer.go) expects in the Release file a line with "SHAxxx" followed by the actual hash, which doesn't exist inside this file: http://ubuntu.mirror.frontiernet.net/ubuntu/dists/bionic-updates/main/binary-amd64/Release.
I am not an ubuntu expert, but to me this repo looks empty.
I've wrote some code to unzip the files from /by-hash/SHA256/ and populate data structures for each package (there are like 10k). But it looks anyways there isn't any package in the repo.

@srbarrios
Copy link
Member

srbarrios commented Jan 25, 2021

Ubuntu's must be syncronized using another command: "apt-mirror"
The config in our mirror is here:

minima-mirror-qam:/etc/cron.daily # cat /etc/apt-mirror.list
set mirror_path /srv/mirror/
set defaultarch amd64
set nthreads    10

# Ubuntu 16.04
deb http://archive.ubuntu.com/ubuntu xenial main
deb http://archive.ubuntu.com/ubuntu xenial-updates main
deb http://archive.ubuntu.com/ubuntu xenial-security main

# Ubuntu 18.04
deb http://archive.ubuntu.com/ubuntu bionic main
deb http://archive.ubuntu.com/ubuntu bionic-updates main
deb http://archive.ubuntu.com/ubuntu bionic-security main

# Ubuntu 20.04
deb http://archive.ubuntu.com/ubuntu focal main
deb http://archive.ubuntu.com/ubuntu focal-updates main
deb http://archive.ubuntu.com/ubuntu focal-security main
deb http://archive.ubuntu.com/ubuntu focal universe
minima-mirror-qam:/etc/cron.daily # cat apt-mirror.sh 
#! /bin/bash

date >> /var/log/apt-mirror.log
echo '---------------------------------------------------------' >> /var/log/apt-mirror.log
(apt-mirror 2>&1) >> /var/log/apt-mirror.log
echo >> /var/log/apt-mirror.log

@srbarrios
Copy link
Member

srbarrios commented Jan 25, 2021

@Bischoff @atighineanu unless you have any objection, let's close this card. I commented above how to sync Ubuntu or Debian products.
@moio please close it.

@Bischoff
Copy link
Author

Bischoff commented Jan 25, 2021

Yes, i know we can sync with apt-mirror, @srbarrios . Still, it's suboptimal we cannot use minima for it. But close this if you wish.

@srbarrios
Copy link
Member

srbarrios commented Jan 25, 2021

Yes, i know we can sync with apt-mirror, @srbarrios . Still, it's suboptimal we cannot use minima for it. But close this if you wish.

Ah, I missunderstood the card, so this is not an issue but an enhacement that we want to do. Is in fact well labelled :)
All good, sorry for the noise.

@Bischoff
Copy link
Author

No worries.

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

No branches or pull requests

4 participants