I have installed Bash on Ubuntu on Windows (after enabling the feature in settings)
I don't remember what I did, but the result was that apt-get doesn't locate ANY package
With and without sudo:
$ apt-get install <package>
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package <package>I tried many fixes found on this site, like:
apt-get upgrade & apt-get update
& I tried recreating resources.list using nano
How could this be fixed?
121 Answer
You don't have a correctly setup /etc/apt/sources.list file. Try pasting the following into /etc/apt/sources.list:
deb trusty main restricted deb-src trusty main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb trusty-updates main restricted deb-src trusty-updates main restricted ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb trusty universe deb-src trusty universe deb trusty-updates universe deb-src trusty-updates universe ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team, and may not be under a free licence. Please satisfy yourself as to ## your rights to use the software. Also, please note that software in ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb trusty multiverse deb-src trusty multiverse deb trusty-updates multiverse deb-src trusty-updates multiverse ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb trusty-backports main restricted universe multiverse deb-src trusty-backports main restricted universe multiverse deb trusty-security main restricted deb-src trusty-security main restricted deb trusty-security universe deb-src trusty-security universe deb trusty-security multiverse deb-src trusty-security multiverse ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb vivid partner # deb-src vivid partner
Then try running apt-get update again.