Error on adding apt repository
sudo add-apt-repository ppa:forkotov02/ppa
Error :
Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 363, in <module> addaptrepo = AddAptRepository() File "/usr/bin/add-apt-repository", line 41, in __init__
self.distro.get_sources(self.sourceslist) File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources raise
NoDistroTemplateException( aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Neon/jammy
Actually some files in /etc/*-release got modified when you
tried to install some package in my case i try to add Kde-Neon
repository but not installed Kde Neon.
& os-release) to Ubuntu default.
For that follow following instructions.
Run
sudo nano /etc/*-release
First File:(lsb-release)
DISTRIB_ID=ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
Second File:(os-release)
PRETTY_NAME="Ubuntu 22.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
LOGO=start-here
Reboot The Computer
After Reboot try
sudo add-apt-repository ppa:forkotov02/ppa
sudo apt update
sudo apt install qmmp-qt6 qmmp-plugin-pack-
In my case i was able to add apt repository without any
problem after doing above procedure.
No comments:
Post a Comment