Comments (8)
It somehow took 4 minutes to make the cache :
$ time sudo tdnf makecache
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64) Updates'
Refreshing metadata for: 'VMware Photon Extras 3.0 (x86_64)'
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64)'
Metadata cache created. 2498249 100%
real 3m58.512s
user 3m52.216s
sys 0m1.616s
$
from photon.
Can you send the content of the repo files in /etc/yum.repos.d/
? Make sure you have skip_md_filelists=1
set, especially for /etc/yum.repos.d/photon-updates.repo
which is the largest repo because it contains all versions.
Also, have you checked if network access is acceptable for other applications, or is it just tdnf
?
from photon.
Can you send the content of the repo files in
/etc/yum.repos.d/
? Make sure you haveskip_md_filelists=1
set, especially for/etc/yum.repos.d/photon-updates.repo
which is the largest repo because it contains all versions.Also, have you checked if network access is acceptable for other applications, or is it just
tdnf
?
Before doing this, you have to update tdnf
to latest. It's a one time thing but there is no other option.
tdnf update -y tdnf
This might take a while to finish. Then add skip_md_filelists=1
in repo file.
Then try rm -rf /var/cache/tdnf/
and tdnf makecache --refresh
from photon.
Well yes, I was assuming that tdnf
was updated to the latest what's available in Photon 3.0, maybe I shouldn't have. So which version is this? (tdnf --version
)
Also, if this is an old version, there should be no need to edit the config file to add skip_md_filelists=1
, it will be done in the post install script of the package. But double check in any case.
from photon.
Here is my tdnf
:
$ grep skip_md_filelists /etc/yum.repos.d/*.repo
$ sudo tdnf --version
tdnf: 3.1.0
$
from photon.
Now I've just updated it :
$ sudo tdnf update tdnf
Upgrading:
tdnf-cli-libs x86_64 3.1.15-2.ph3 photon-updates 70.24k 71928
tdnf x86_64 3.1.15-2.ph3 photon-updates 313.71k 321243
Total installed size: 383.96k 393171
Is this ok [y/N]: y
Downloading:
tdnf-cli-libs 37007 100%
tdnf 123865 100%
Testing transaction
Running transaction
Installing/Updating: tdnf-cli-libs-3.1.15-2.ph3.x86_64
Installing/Updating: tdnf-3.1.15-2.ph3.x86_64
Removing: tdnf-3.1.0-1.ph3.x86_64
Removing: tdnf-cli-libs-3.1.0-1.ph3.x86_64
Complete!
$
The update of the tdnf
package did not add the skip_md_filelists=1
line to the /etc/yum.repos.d/*.repo
files :
$ grep skip_md_filelists /etc/yum.repos.d/*.repo
$
from photon.
Still have the same problem :
$ sudo rm -rf /var/cache/tdnf/
$ time sudo tdnf makecache --refresh
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64) Updates'
Refreshing metadata for: 'VMware Photon Extras 3.0 (x86_64)'
Refreshing metadata for: 'VMware Photon Linux 3.0 (x86_64)'
Metadata cache created. 2498249 100%
real 3m38.129s
user 3m31.838s
sys 0m1.610s
$
On another vcenter, the exact same operation takes 1.5s.
from photon.
The issue was solved by manually appending the line skip_md_filelists=1
to the /etc/yum.repos.d/*.repo
files.
Thanks a lot guys 👍
from photon.
Related Issues (20)
- Problem building Python-3.10.7 on Photon OS missing linux/limits.h HOT 2
- Add support for flatpak application installs HOT 1
- Ph 5.0 make build issues in packages sssd-2.8.2 and kubernetes-dashboard-2.7.0 HOT 5
- Add Nvidia Metropolis Microservices Essentials package to Photon OS HOT 1
- mlocate package not working as non root user : mlocate: can not open `/var/lib/mlocate/mlocate.db': Permission denied HOT 1
- Photon OS support for WSL2 HOT 2
- Cross-compiling 5.0 branch HOT 4
- check_spec_files fails HOT 2
- Photon 3.0 cgroup exhaustion. VM shuts down with CPU disabled HOT 16
- Photon OS 5 and PostgreSQL 15 installation is not complete HOT 5
- Installing network-config-manager on Photon 5 Causes Docker Networking to Stop Working HOT 4
- garbage collection of branches HOT 1
- security advisories missing in Security-Updates-{1,2,3,4,5}.md
- `nvme-tcp` kernel module missing HOT 4
- openjdk17-17.0.8 does not compile when building package with Photon OS 5.0 on WSL2 HOT 2
- Trying to setup static IP using installer and afterwards checking through the docs still not working HOT 4
- Upgrading Photon OS 3.0 to 5.0 without internet HOT 4
- first try on photon-os for docker-swarm fails with cgroup HOT 4
- Static IP breaks network connections in Photon OS 5 on VMWare Workstation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.