Error Unable to read package metadata.This may be due to a missing repodata directory - linux

Error Unable to read package metadata.This may be due to a missing
repodata directory.Please ensure that your install tree has been
correctly generated. Cannot retrieve repository metadata(repomd.xml)
for repository:CentOs. Please verify its path and try again.
('custom',[_Exit installer],'Edit','_Retry',‘_Continue’)]
This problem is different from this question:
Unable to read package metadata. This may be due to missing repodata directory. Please ensure that your install tree has been correctly generated.
Becase I verify the repodata,the file is right.

Related

Getting this below error while running puppet agent -t?

I am getting this error every time I ran puppet agent -t on the agent.
Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/ipaddresses.rb: cannot load such file -- facter/util/ip
Can anyone help me in resolving this error?
I have tried various solutions but nothing seems to be working. Like installing gems package etc.
Puppet version I am ones 5.5.2
Are you calling/storing the file from the correct directory?
Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/ipaddresses.rb:
The file ipaddresses.rb seems to be in folder 'facter', however, in the error you have a path facter/util/ip.
'Util' folder is within the 'Facter' folder, so you might have an incorrect path hence why the agent run is failing.

Weird error while installing OSPD (OpenVAS)

Im trying to compile all necesary modules in order to setup an OpenVAS local server, when I try to install OSPD module I get an error. I have already read the read info at their github page and installed all necesary packages, but I keep getting the same error when I try:
root#debian-server:/home/openvas/ospd-master# python3 setup.py install
..........................................................
Copying ospd-21.10.0.dev1-py3.7.egg to /usr/local/lib/python3.7/dist-packages
ospd 21.10.0.dev1 is already the active version in easy-install.pth
Installed /usr/local/lib/python3.7/dist-packages/ospd-21.10.0.dev1-py3.7.egg
Processing dependencies for ospd==21.10.0.dev1
Searching for deprecated
Reading https://pypi.org/simple/deprecated/
Download error on https://pypi.org/simple/deprecated/: [Errno 101] Network is unreachable -- Some packages may not be found!
Couldn't find index page for 'deprecated' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found!
No local packages or working download links found for deprecated
error: Could not find suitable distribution for Requirement.parse('deprecated')
What do I need to do for be able to install it (I dont wanna install it trough pip)
Note: I only copy the error section in order to keep clean this page...
Well, apparantly was a self mistake due to a missconfiguration on proxy enviromentals varibles. Apparently pip works over https and I had a missconfiguration

Why do I get org.apache.maven.plugins:maven-site-plugin:3.6.1:?

I am trying to create a basic mulesoft plugin
mvn org.mule.extensions:mule-extensions-archetype-maven-plugin:1.2.0:generate
When I try and execute mvn eclipse:clean
I get
[WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.6.1 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.6.1: Plugin org.apache.maven.plugins:maven-site-plugin:3.6.1 or one of its dependencies could not be resolved: Failure to find org.apache.maven.plugins:maven-site-plugin:jar:3.6.1 in http://repository.mulesoft.org/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of mulesoft-plugin-releases has elapsed or updates are forced
How do I resolve this? I am using eclipse/studio not IntelliJ.
Any pointers?
That is a warning, not an error. It should not cause any issue. Just ignore it.

Getting error "Could not find preset 'react-server' relative to directory ..."

Full error message:
../assets/around/TCircle.svg
Module build failed: Error: Couldn't find preset "react-server" relative to directory "/Users/admin/Documents"
at Array.map (native)
I'm getting the error above over and over, but there's no single mention of react-server in the whole project's directory.
What I'm trying to accomplish is to link assets directory as an npm dependency, and access them throughout the project.
Also (this may sound silly) - but it works perfectly on others' machines.
I encountered this same issue. In my case, there was a .babelrc file in the parent directory that included the react-server preset. Deleting the .babelrc file in the parent directory solved the problem.
This is the expected lookup behavior according to Babel's docs.

Cabal update fails with 404 error trying to access a non existing file when compiling Apache Thrift

I'm trying to install Apache Thrift on my system, which performs a cabal update command. This command fails with the following message:
Downloading the latest package list from stackage cabal: Failed to download
http://www.stackage.org/stackage/7ae494fec2db3161dfb8e64677149285857478e0/00-index.tar.gz
: ErrorMisc "Error HTTP code: 404"
I normally use stack and I never had to do a cabal update manually. I don't know if the interaction between cabal and stack is a problem here.
Any ideas on how to fix this?
EDIT: Looking at my `~/.cabal/config~ I see the following entry:
remote-repo: stackage:http://www.stackage.org/stackage/7ae494fec2db3161dfb8e64677149285857478e0
So it seems that line is the culprit, but I don't know whether stack could have changed this for a good reason.

Resources