Skip to main content
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.
Michiel Bruijn's user avatar
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/...
Hicham's user avatar
  • 151
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/...
PHZ.fi-Pharazon's user avatar
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://...
Michael Altfield's user avatar
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 ...
Syberspace's user avatar
5 votes

Mirror github to Cloud Source Repositories

Enabling the sourcerepo.googleapis.com API on the project solved it.
Stipe's user avatar
  • 51
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 ...
potom's user avatar
  • 380
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 ...
Jacob Church's user avatar
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 ...
Phill  W.'s user avatar
  • 1,642
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:...
vaizki's user avatar
  • 270
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) ...
Andreas Bretschneider's user avatar
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 ...
Ginnungagap's user avatar
  • 2,734
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 ...
Floodpants's user avatar
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 ...
HBruijn's user avatar
  • 85.5k
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 ...
imvikasmunjal's user avatar
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 ...
Tomek's user avatar
  • 3,856
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 ...
fuero's user avatar
  • 9,910
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 ...
davejagoda's user avatar
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 ...
MLu's user avatar
  • 26.3k
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,...
vkopio's user avatar
  • 129
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 ...
Capn Sparrow's user avatar
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 ...
Greg Askew's user avatar
  • 39.8k
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.
wsams's user avatar
  • 161
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> ....
sorin's user avatar
  • 8,544
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 ...
mforsetti's user avatar
  • 2,888
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 ...
uday kiran's user avatar
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 ...
Sam Cogan's user avatar
  • 39.1k
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 ...
shearn89's user avatar
  • 3,630
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 ...
user5626219's user avatar
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 ...
Henrik Pingel's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible