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

Failed pkg install should not corrupt the local meta database... #1693

Open
sean- opened this issue Jun 2, 2018 · 0 comments
Open

Failed pkg install should not corrupt the local meta database... #1693

sean- opened this issue Jun 2, 2018 · 0 comments

Comments

@sean-
Copy link
Member

sean- commented Jun 2, 2018

pkg install failed while wifi was unavailable momentarily. It was required to rebuild the database via pkg upgrade. If DNS is unavailable, pkg should not corrupt its database.

% doas pkg install postgresql96-server                                                                                                                     
Updating FreeBSD repository catalogue...                                                                                                                                    
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version or wrong format                                                                                             
pkg: Repository FreeBSD load error: meta cannot be loaded No such file or directory                                                                                         
pkg: http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest/meta.txz: No address record                                                                                             
repository FreeBSD has no meta file, using default settings                                                                                                                 
Fetching packagesite.txz: 100%    6 MiB 144.7kB/s    00:44                                                                                                                  
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version or wrong format                                                                                             
pkg: Repository FreeBSD load error: meta cannot be loaded No such file or directory                                                                                         
Unable to open created repository FreeBSD                                                                                                                                   
Unable to update repository FreeBSD                                                                                                                                         
Error updating repositories!                                                                                                                                                
Exit 3                                                                                                                                                                      
% doas pkg install -U postgresql96-server                                                                                                                  
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version or wrong format                                                                                             
pkg: Repository FreeBSD load error: meta cannot be loaded No such file or directory                                                        
pkg: Repository FreeBSD cannot be opened. 'pkg update' required                                                                  
pkg: No packages available to install matching 'postgresql96-server' have been found in the repositories                       
Exit 70                                                                                                                          
% doas pkg update                                                                                                    
Updating FreeBSD repository catalogue...                                                                                          
pkg: repository meta /var/db/pkg/FreeBSD.meta has wrong version or wrong format                                                     
pkg: Repository FreeBSD load error: meta cannot be loaded No such file or directory                                                          
Fetching meta.txz: 100%    940 B   0.9kB/s    00:01                                                                               
Fetching packagesite.txz: 100%    6 MiB 151.5kB/s    00:42                                                                                                                 
Processing entries: 100%                                                                                                                                                   
FreeBSD repository update completed. 31365 packages processed.                                                                                                             
All repositories are up to date.                                                                                                                                           
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant