apt install command failed to install (Resolved)

The following error when installing virtualbox, Baidu did not find an answer for a long time, have been resolved under the guidance of friends, share to you. the above

An error occurred while processing:
 getdeb Repository-
N: Ignore 'getdeb.list.bck' (in the directory '/etc/apt/sources.list.d/'), in view of its file extension is not valid
N: Ignore 'sources .list.d '(in the directory' /etc/apt/sources.list.d/ '), in view of its file extension is invalid

These are the wrong shots.

The reason is that getdeb-repository packages installed before me, (suggest that you do not install this, because this is a third-party installation tool software, installed in the "/etc/apt/sources.list.d" inside, Ubuntu comes with the system software installation package, the "/etc/apt/sources.list" inside) quoted the words of others: a common file /etc/apt/sources.list is editable text file, ubuntu software update contains the address of the source server . And the same is /etc/apt/sources.list.d/*.list(* sources.list function on behalf of a file name can only consist of letters, numbers, underscores, periods). * .List sources.list.d files in directory provides a way for the write address source in a separate file that is typically used to install third-party software.

How: 1. Uninstall the getdeb-repository, the command: sudo apt-get remove getdeb-repository

2. Delete all the files /etc/apt/sources.list.d/ inside, including my getdeb.list.bck and sources.list.d, delete all.

After ready for use apt-get install commands.

Released three original articles · won praise 0 · Views 2060

Guess you like

Origin blog.csdn.net/qq_25619091/article/details/81952698