Cannot upgrade git to the latest version in Ubuntu 14.04

Phymin

I follow the steps in Upgrade Git version on Ubuntu 14.04, but when I enter the first step command: sudo add-apt-repository ppa:git-core/ppa, I receive the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/etc/apt/sources.list.d/git-core-ppa-trusty.list'

you can check the following picture for detail:

error discription

With this error, when I continue to enter the remaining 2 commands, I failed to upgrade my git version. Hope someone know this problem can help me out, thank you.

Byte Commander

Your initial error (the Python FileNotFoundError) is most likely caused because the directory /etc/apt/sources.list.d inside which add-apt-repository tries to create a sources file does not exist, for whatever obscure reason.

To fix this, simply create this directory manually with e.g. this command:

sudo mkdir /etc/apt/sources.list.d

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

upgrade ubuntu to the latest released version

From Dev

Upgrade to latest Ubuntu cannot boot

From Dev

Cannot upgrade to latest version of thunderbird 78

From Dev

Upgrade Git version on Ubuntu 14.04

From Dev

Upgrade Git version on Ubuntu 14.04

From Dev

Will it be possible to upgrade to the latest Ubuntu from an older version

From Dev

Upgrade to the latest PHP version in ubuntu 16.04

From Dev

How to upgrade to latest version of Ubuntu software in 20.04

From Dev

Upgrade scipy to the latest version

From Dev

upgrade filezilla to latest version

From Dev

Why Ubuntu doesn't upgrade to the latest version of GnuPG?

From Dev

Why Ubuntu doesn't upgrade to the latest version of GnuPG?

From Dev

How to upgrade to the latest BlueZ version on Ubuntu 12.04 LTS?

From Dev

How do I upgrade Vagrant to the latest version in Ubuntu?

From Dev

Upgrade WordPress to latest version in Linux

From Dev

How to upgrade VirtualBox to the latest version?

From Dev

How to upgrade VirtualBox to the latest version?

From Dev

How to upgrade to the latest GNOME version?

From Dev

How to upgrade SAMBA to latest version?

From Dev

Upgrade WordPress to latest version in Linux

From Dev

How to upgrade to the latest GNOME version?

From Dev

How does one upgrade ubuntu (any version to latest version) using an ISO image?

From Dev

Why I can not upgrade to new git version in ubuntu 13.04

From Dev

Upgrade Pylint Version 1.9.2 to latest Version

From Dev

Latest scipy version on ubuntu

From Dev

Latest scipy version on ubuntu

From Dev

Dual boot ubuntu 14 .04LTS

From Dev

Error installing ubuntu server 14:04 / 15:04

From Dev

How i can upgrade my Ubuntu python3.7 to python3.8 latest version?

Related Related

HotTag

Archive