When working with package deal administration programs like apt or apt-get on Debian-based Linux distributions, it’s possible you’ll encounter numerous errors.
One widespread error is the “E: You could put some ‘deb-src’ URIs in your sources.record” message, which happens when trying to make use of the supply package deal repositories however lacking the required configurations.
Understanding the Error
The “E: You could put some ‘deb-src’ URIs in your sources.record” error happens when the apt-get command is unable to find the supply package deal repositories specified within the system’s sources.record file.
Supply packages include the supply code used to construct the binary packages accessible for set up. Enabling the supply repositories permits customers to fetch the supply code of packages for inspection, modification, or recompilation.

Fixing E: You could put some ‘deb-src’ URIs in your sources.record
On this article, we are going to delve into the reason for this error and discover the steps to resolve it within the Ubuntu system by way of command line and desktop.
Utilizing Ubuntu Command Line
To resolve the “E: You could put some ‘deb-src’ URIs in your sources.record” error, you may comply with these steps:
1. First, open the sources.record file positioned within the /and so on/apt/ listing utilizing a nano textual content editor.
$ sudo nano /and so on/apt/sources.record
Subsequent, within the sources.record file, you will notice traces that start with "deb"
and "deb-src"
adopted by a repository URL. The "deb"
traces characterize the binary package deal repositories, whereas the "deb-src"
traces are used for supply packages.

Find the "deb-src"
traces and make sure that they aren’t commented out (not preceded by a '#'
image). If they’re commented, take away the '#'
image to uncomment them.
deb-src http://in.archive.ubuntu.com/ubuntu lunar most important restricted

After including or uncommenting the "deb-src"
traces, save the modifications to the sources.record file by urgent Ctrl + O
, adopted by Enter, after which exit the textual content editor by urgent Ctrl + X
.
Now, replace the package deal lists utilizing the next command:
$ sudo apt-get replace
This command will refresh the repository info, together with the newly added supply package deal repositories.
Now you can retry the earlier apt-get command that resulted within the error.
The “E: You could put some ‘deb-src’ URIs in your sources.record” error ought to now not happen, and you may proceed together with your desired package deal administration activity.
$ sudo apt-get supply vsftpd

Utilizing Ubuntu Desktop
To allow the Supply Code repository in Ubuntu Desktop, you may comply with these steps:
Open the “Software program & Updates” software and navigate to the “Ubuntu Software program” tab and allow the “Supply code” choice as proven.

Once you shut the “Software program & Updates” window, Ubuntu will robotically refresh the package deal info to incorporate the supply code repositories.
Conclusion
The “E: You could put some ‘deb-src’ URIs in your sources.record” error will be resolved by including or uncommenting the "deb-src"
traces within the sources.record file and updating the package deal lists.
By enabling the supply package deal repositories, you achieve entry to the supply code of packages, enabling additional exploration and customization. With the steps outlined on this article, you may overcome this error and proceed successfully managing packages in your Debian-based Linux system.