# I tried to establish AP on ubuntu 14.04 using ap-hotspot but failed.
# I use the following method to sucessfuly establish an AP.
# ref: http://jingyan.baidu.com/article/d8072ac4414864ec95cefdaf.html
1.
$ sudo apt-get update
#remove buggy hostapd
$ sudo apt-get remove hostapd
2. download bug free package
$ cd /tmp
$ wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
$ sudo dpkg -i hostapd*.deb
$ sudo apt-mark hold hostapd
3. install ap-hotspot
$ sudo apt-get install ap-hotspot
4. start service
$ sudo ap-hotspot configure
$ sudo ap-hotspot start
5. stop service
$ sudo ap-hotspot stop