Last Updated on 2021-10-09 by Clay
If we got the following error message when we using sudo apt update
command:
Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/teamviewer.list:25 and /etc/apt/sources.list.d/teamviewer.list:30
It may not be teamviewer.list or other packages. What is the meaning of these error?
In fact, it is very simple to put it, this is because there is the setting is duplicated in the teamviewer.list.
Let’s take a look at my example.
Solution
We can go to the teamviewer.list to check:
vim /etc/apt/source.list.d/teaviewer.list
We will see the following content:
### TeamViewer DEB repository list
### NOTE: Manual changes to this file
### - prevent it from being updated by TeamViewer package updates
### - will be lost after using the 'teamviewer repo' command
### The original file can be restored with this command:
### cp /opt/teamviewer/tv_bin/script/teamviewer.list /etc/apt/sources.list.d/teamviewer.list
### which has the same effect as 'teamviewer repo default'
### NOTE: It is preferred to use the following commands to edit this file:
### teamviewer repo - show current repository configuration
### teamviewer repo default - restore default configuration
### teamviewer repo disable - disable the repository
### teamviewer repo main [stable] - make all TeamViewer packages available (default)
### teamviewer repo tv14 [stable] - make TeamViewer 14 packages available
### stable omit preview and beta releases
### Choose stable main to receive updates for TeamViewer 14 and upcoming major releases
### Choose preview main to receive early updates for TeamViewer 14 and to receive major beta releases
### Choose stable tv14 to receive updates for TeamViewer 14
### Choose preview tv14 to receive early updates for TeamViewer 14
deb http://linux.teamviewer.com/deb stable main
# deb http://linux.teamviewer.com/deb preview main
# deb http://linux.teamviewer.com/deb stable tv14
# deb http://linux.teamviewer.com/deb preview tv14
deb http://linux.teamviewer.com/deb stable main
As you can see, The line “deb http://linux.teamviewer.com/deb stable main” is repeated. As long as you delete this line, sudo apt update
should not report this error again.
References
- https://askubuntu.com/questions/760896/how-can-i-fix-apt-error-w-target-packages-is-configured-multiple-times
- https://forums.linuxmint.com/viewtopic.php?t=275588
Read More
- [Solved][Linux] Too many levels of symbols links
- [Solved][Linux] Argument list too long …
- [Solved][Linux] welcome to emergency mode! after logging in type “journalctl -xb” to view system logs “systemctl reboot” to reboot “systemctl default” to try again to boot into default mode. give root password for maintenance