Android FrameWork Package packagename has no installation candidate, androidpackagename

Source: Internet
Author: User

Android FrameWork Package packagename has no installation candidate, androidpackagename

When Ubuntu downloads and compiles the FrameWork source code, apt-get cannot run and tries to obtain the root permission to perform the following operations: apt-get update apt-get

The upgrade error message still appears. For various 404 source prompts, I checked the Ubuntu official website and saw the following information:


The Top mirror feature of Ubuntu Night (http://ubuntu9.com) continually updates information about the currently available source based on current network conditions and source health conditions, including Top fast/near/stable mirror, you can find all the available Ubuntu images (source) on the current network and rank them according to the average download speed and geographical location. In addition, when you find the most suitable source, you can also directly download its sources. list file, and copy it directly to/etc/apt/sources. list or put it in/etc/apt/souces. list. d directory, it is very convenient, you do not have to find the available source.


Different network conditions have different speeds for connecting the following sources. We recommend that you manually verify the connection speed of the following sources before adding the source (ping the source). Selecting the fastest source can save a lot of download time.


First, we need to back up our previous source list file. The cp to directory is optional. Here we only provide reference

Sudo cp/etc/apt/sources. list/etc/apt/sources. list_backup


My Ubuntu version is relatively low, so I chose a suitable source (10.04)


Deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
The deb-src http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
The deb-src http://archive.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
The deb-src http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
Deb-src http://archive.ubuntu.com/ubuntu/ lucid-proposed main restricted universe multiverse
Deb-src http://archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse


There are many other source resources that will not be described one by one. Next we need to add the source and update source:


Sudo gedit/etc/apt/sources. list


Replace all the new sources that have just been found, that is, clear all the previous ones, paste them, and save them.


Sudo apt-get update

Sudo apt-get upgrade


......

Get: 32 http://archive.ubuntu.com lucid-updates/restricted Sources [2, 210B]
Get: 33 http://archive.ubuntu.com lucid-updates/universe Sources [110kB]
Get: 34 http://archive.ubuntu.com lucid-updates/multiverse Sources [5, 829B]
Get: 35 http://archive.ubuntu.com lucid-proposed/main Packages [236kB]
Get: 36 http://archive.ubuntu.com lucid-proposed/restricted Packages [28B]
Get: 37 http://archive.ubuntu.com lucid-proposed/universe Packages [5, Protocol B]
Get: 38 http://archive.ubuntu.com lucid-proposed/multiverse Packages [28B]
Get: 39 http://archive.ubuntu.com lucid-proposed/main Sources [137kB]
Get: 40 http://archive.ubuntu.com lucid-proposed/restricted Sources [28B]
Get: 41 http://archive.ubuntu.com lucid-proposed/universe Sources [1, 031B]
Get: 42 http://archive.ubuntu.com lucid-proposed/multiverse Sources [28B]
Get: 43 http://archive.ubuntu.com lucid-backports/main Packages [16.9kB]
Get: 44 http://archive.ubuntu.com lucid-backports/restricted Packages [14B]
Get: 45 http://archive.ubuntu.com lucid-backports/universe Packages [55.7kB]
Get: 46 http://archive.ubuntu.com lucid-backports/multiverse Packages [1, Batch B]
Get: 47 http://archive.ubuntu.com lucid-backports/main Sources [9, 162B]
Get: 48 http://archive.ubuntu.com lucid-backports/restricted Sources [14B]
Get: 49http://archive.ubuntu.com lucid-backports/universe Sources [24.5kB]
Get: 50 http://archive.ubuntu.com lucid-backports/multiverse Sources [1, 633B]
Fetched 14.7 MB in 5 min 14 s (46.6kB/s)

It took more than 5 minutes. After I updated the source, I pinged the net and found it was okay. The download speed should be very good.

A curl package is provided:

Root @ ubuntu:/etc/apt # sudo apt-get install curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
Curl
0 upgraded, 1 newly installed, 0 to remove and 1177 not upgraded.
Need to get 210kB of archives.
After this operation, 324kB of additional disk space will be used.
Get: 1 http://archive.ubuntu.com lucid-security/main curl 7.19.7-1ubuntu1. 11 [210kB]
Fetched 210kB in 6 s (33.9kB/s)
Selecting previusly deselected package curl.
(Reading database... 114040 files and directories currently installed .)
Unpacking curl (from.../curl_7.19.7-1ubuntu1.11_i386.deb )...
Processing triggers for man-db...
Setting up curl (7.19.7-1ubuntu1. 11 )...
Root @ ubuntu:/etc/apt #
Reading package lists... Done
Root @ ubuntu:/etc/apt #


Then install a git-core package to download the FrameWork source code.


Root @ ubuntu:/etc/apt # sudo apt-get install git-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
Upower libupower-glib1
Use 'apt-get autoremove 'to remove them.
The following extra packages will be installed:
Consolekit fontconfig-config IBD ifupdown indicator-applet-session initramfs-tools
Initramfs-tools-bin libasound2 libatk1.0-0 libc-bin libc-dev-bin libc6 libc6-dev libc6-i686 libdb4.8
Libdbus-glib-1-2 libdevkit-power-gobject1 libdigest-sha1-perl libdrm-nouveau1 libdrm-radeon1 liberror-perl
Libfontconfig1 libglib2.0-0 libindicator0 libnih-dbus1 libnih1 libperl5.10 libplymou2libpopt0 libudev0
Libupower-glib1 libxklavier16 mountall patch perl-base perl-modules plymouth udev upower upstart
Suggested packages:
Uswsusp gok git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk gitweb glibc-doc diffutils-doc
Perl-doc libterm-readline-gnu-perl libterm-readline-perl watershed
Recommended packages:
Indicator-sound indicator-application indicator-me manpages-dev plymouth uth-theme-ubuntu-text plymouth uth-theme
The following packages will be REMOVED:
Devicekit-power gnome-power-manager indicator-session ubuntu-desktop usplash-theme-ubuntu
The following NEW packages will be installed:
Git-core initramfs-tools-bin libdb4.8 libdigest-sha1-perl libdrm-nouveau1 liberror-perl libindicator0 libnih-dbus1
Libnih1 libplymouh2 libupower-glib1 libxklavier16 patch plymouth upower
The following packages will be upgraded:
Consolekit fontconfig-config IBD ifupdown indicator-applet-session initramfs-tools libasound2
Libatk1.0-0 libc-bin libc-dev-bin libc6 libc6-dev libc6-i686 libdbus-glib-1-2 libdevkit-power-gobject1
Libdrm-radeon1 libfontconfig1 libglib2.0-0 libperl5.10 libpopt0 libudev0 mountall perl-base perl-modules udev
Upstart
28 upgraded, 15 newly installed, 6 to remove and 1145 not upgraded.
Need to get 32.8 MB of archives.
After this operation, 5, 808kB of additional disk space will be used.
Do you want to continue [Y/n]?


The speed is quite good !! The rest is to download and process related tools and packages supported by repo, python, and so on. In addition, because the FrameWork download time is too long, we will not introduce it.

It is mainly used to solve the problem that the source of Ubuntu low edition cannot be used. You can also look at this problem if you are still on a detour. Don't look at irrelevant blogs and materials everywhere. This will only be misleading !!

Sometimes finding official website information is the most reliable


In addition, I would like to promote my CSDN teaching materials to more friends who want to know me and discuss development issues together. Although I am very busy at ordinary times and have no time to reply to your questions, I am sorry here!

Address: http://edu.csdn.net/course/detail/420

However, there are still many netizens who silently support me. I am very grateful, really !! All my blogs or tutorials in the future will be recorded and written with greater care. Thank you for your support !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.