21
votes
Ubuntu Server 22.04.1 LTS "failed to connect to https //changelogs.ubuntu.com/meta-release-lts. Check your Internet Connection or Proxy Settings"
I was messing around with gateways, bridges etc. and received the same error.
sudo apt reinstall ubuntu-release-upgrader-core
fixed it for me.
15
votes
Extract repository name from GitHub url in bash
Old post, but I faced the same problem recently.
The regex ^(https|git)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)\/(.+).git$ works for the three types of URL.
#!/bin/bash
# url="git://github.com/some-user/...
10
votes
Ubuntu Server 22.04.1 LTS "failed to connect to https //changelogs.ubuntu.com/meta-release-lts. Check your Internet Connection or Proxy Settings"
In Ubuntu 20.04 LTS focal there seems to be a certificate issue that prevents do-release-upgrade.
If you have this case, the fix is to edit
/usr/lib/python3/dist-packages/UpdateManager/Core/...
7
votes
MANIFEST_UNKNOWN error: OCI index found, but Accept header does not support OCI indexes
You're getting this error message because you forgot to specify the Accept header.
Try this
curl -H "Authorization: Bearer QQ==" -H 'Accept: application/vnd.oci.image.index.v1+json' https://...
5
votes
Accepted
Limiting shell access for git users, but still allowing push / pull access
The easiest solution would be to use git-shell as the user's login-shell.
A detailed description on how to set this up can be found here: https://git-scm.com/docs/git-shell or alternatively on the ...
5
votes
Mirror github to Cloud Source Repositories
Enabling the sourcerepo.googleapis.com API on the project solved it.
5
votes
Any security risk in creating root public/private keys and adding public key to Github repo?
It's not a security risk per se - public keys are public.
However you may still want to keep your config files at least somewhat private rather then expose them to the whole world on github. What if ...
4
votes
Using Same SSH Private Key Across Multiple Machines
I know this is old, but thought I'd point out that you also need to copy the public key to the second client, or recompute it with
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
From OpenSSH ...
4
votes
How to keep pipeline files in a separate repository for azure devops pipeline?
I am definitely no ADO expert but isn't the point of Pipelines that they go "hand-in-hand" with the codebase that they deploy, which is why they go into the same Repo?
Basically, Our Friends ...
4
votes
Accepted
How to authenticate and push to GitHub from a CI Script
You should create a new personal access token for your CI pipeline. Just go to https://github.com/settings/tokens to create it. You need to give the repo scope to the new token.
Then you can use https:...
3
votes
Accepted
Jenkins Github Branch Source Plugin Failing with Github Token after today's Github auth changes
Exactly same story here. Your post inspired me to dig deeper and I found a solution.
Go to the "System Configuration" (sorry, my Browser is set to german and I don't know the exact wording) ...
3
votes
Do I need to have my private ssh key stored on my server in order to git clone repos while ssh'd into the server?
You can use ssh -A to forward your ssh-agent to the remote host which will use your local keys from the remote server without sending the keys themselves.
While this seems like a secure option, only ...
3
votes
kex_exchange_identification: Connection closed by remote host ... How do I resolve this error
Please make sure you have the correct access rights
That's the key part of the error. Basically, github is refusing access to that repository via SSH, because you're not authenticating with a key ...
3
votes
Accepted
Pull ssh key from github server
Although I didn't know that Github makes your public keys public, why would you ask for somebodies Github account rather than ask them directly for their public key when you're setting up public key ...
2
votes
Accepted
securely connect jenkins and github
You can retrieve a list of GitHub's IP addresses from the meta API endpoint. For more information, see "Meta" in the GitHub Developer documentation.
API Endpoint: https://api.github.com/meta
GitHub ...
2
votes
Accepted
Use the same SSH key to both connect to remote server and push to GitHub from that server
What you are looking for probably is:
Running ssh authentication agent (ssh-agent) on your ssh client machine;
And forwarding ssh agent connection to the server (-A commandline or ForwardAgent config ...
2
votes
How to avoid pushing our project to their own repository via git
Git is a distributed version control system. It's core concept is that you (as a developer) have a complete copy of the code on your system you may synchronize to several sources (aka remotes) to ...
2
votes
How to create a GitHub repository from CLI
This is one way to do it (change REPO and USERNAME):
curl -d '{"name": "REPO"}' -u USERNAME https://api.github.com/user/repos
If you are using two factor auth, you'll also need to add this as part of ...
2
votes
Accepted
EC2: Cannot git clone at launch
You say it's a private repo - I guess that means it needs a username and password. How are you providing these?
If you have the credentials in e.g. /root/.git-credentials (as described here) and git ...
2
votes
Mirror github to Cloud Source Repositories
Based on your screenshot it looks like you were trying to connect to an organization repository. I was having the same problem with organization repositories but I managed to find a workaround (though,...
2
votes
Accepted
Cannot SSH to github.com after changing to static IP
Use tcp traceroute
Following Tero Kilkanen's advice, I installed tcptraceroute, which led to resolution of the problem. Edit: I wanted to add that I hadn't used traceroute because I knew it used ICMP ...
2
votes
Backup of organization's GitHub repository
https://docs.github.com/en/repositories/archiving-a-github-repository/backing-up-a-repository
Backing up a repository
You can use the API or a third-party tool to back up your repository.
To download ...
2
votes
How to setup Hashicorp Vault Enterprise Secrets Sync with GitHub Enterprise
As of this writing, this has been confirmed by official support that Vault Enterprise is not available for use with GitHub Enterprise. A feature request has been submitted.
2
votes
How do I add labels to GitHub runners?
From the runner itself, you are forced to do:
C:\actions-runner> .\config.cmd remove
# ^ it will ask for token! if you did not save it, you will have to remove from github UI
C:\actions-runner> ....
1
vote
Accepted
How to invoke a .env file into a Django project that runs in a Docker container on a K8s server?
Later on this docker image is being used to run on Kubernetes.
Store your .env file as a Secret with kubectl [1]:
kubectl create secret generic app-env --from-file=.env=/path/to/your/.env
Then you ...
1
vote
Accepted
How to keep duplicate repository in sync with github?
One option is clone as bare repository and fetch the changes from original repo whenever there are changes.
git clone --mirror https://primary_repo_url/primary_repo.git
git fetch origin
Then, add the ...
1
vote
Accepted
How to send notifications to teams using azure devops pipeline?
The easiest way to do this is to use a webhook to send a message to teams. You can create an incoming webhook by following this article. You can then setup a task in your Pipeline to call the webhook ...
1
vote
How to keep pipeline files in a separate repository for azure devops pipeline?
I'm not an Azure expert, but it looks like it's possible:
The following combinations of checkout steps are supported.
No checkout steps: The default behavior is as if checkout: self were the first ...
1
vote
Jenkins Github Branch Source Plugin Failing with Github Token after today's Github auth changes
a null user, with the token as the password
The token as the user & pass
The token description as the user, with the token as the password
None of these worked for me, however
the GitHub username ...
1
vote
Accepted
Ansible: clone repo or install helm chart from private github
Personal access tokens can only be used for HTTPS Git operations.
GitHub documentation: using-a-token-on-the-command-line
The token can be used as a password when using https. So it might be ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
git × 66
ssh × 37
domain-name-system × 22
jenkins × 15
ubuntu × 13
amazon-web-services × 12
linux × 10
amazon-ec2 × 9
deployment × 9
ssh-keys × 9
bash × 7
azure × 6
mac-osx × 6
cname-record × 6
nginx × 5
ssl × 5
kubernetes × 5
gitlab × 5
azure-devops × 5
github-actions × 5
apache-2.2 × 4
php × 4
security × 4
docker × 4