Search code examples
ubuntuandroid-source

Unable to locate package mingw32


Excuse me, I am compiling Android open source project(AOSP) on the Ubuntu 15.04 accroding to this web page(http://blog.logan.tw/2013/09/build-android-aosp.html), I need to install some tools by this command line:

sudo apt-get install git gnupg flex bison gperf build-essential \
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
    libgl1-mesa-dev g++-multilib gcc-multilib mingw32 tofrodos \
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386

After that,

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mingw32

I tried to modify the file /etc/apt/sources.list original:

deb http ://tw.archive.ubuntu.com/ubuntu/ vivid main restricted

result:

deb http ://tw.archive.ubuntu.com/ubuntu/ vivid main universe

It's not work for me, I don't know how to fix this problem: E: Unable to locate package mingw32 Help me please! Thanks!


Solution

  • Have You done an apt-get update after changing sources.list ? (You have to do that sometimes even without changes if a package could be find in the repos)

    What do You get by apt-cache search mingw ?