Handle the dependency problem encountered by pptpd installation in cubieboard2, cubieboard2pptpd
A while ago, the ATOM server in the house had a bad power supply (7x24 had been running for 4 years, and it was already quite good). While waiting for the accessories, I bought a cubieboard2 as the backup server. This product comes with a SATA port, which is indeed a big killer in the ARM motherboard. The performance and functions are much more powerful than Raspberry Pi, and the price is not much expensive. Currently, my configuration is a 2.5-inch hard drive with a 1 TB disk. It consumes only 2.7 million power in a stable working state-about of the ATOM D525 host.
I wanted to install FREEBSD, but it was too troublesome. I needed a TF card and finally used the official cubian system to remove the graphic interface from the server. I used it quite well, but today I think of installing a PPTP on it, and the result is a cup of cake.
Normally, apt-get install pptpd is used, prompting you to update a bunch of things. I thought it was just a normal upgrade, so I didn't take a closer look. I clicked YES, and then ......
When the cup is updated to udev, tell me that udev of version 215 cannot be installed, because what Kernel support is required for version 198 and later. If force update is required, the consequences will be borne by yourself ......
Similar warnings have been seen before, and the consequences of force update are unbearable, so they can only be canceled. However, the system's package dependency is broken and APT cannot be used. The system prompts that apt-get-f install is required, but the result of this operation is that udev must be updated to 215. In trouble.
This problem seems to be characteristic of the ARM platform --
Due to the hardware limitations of specific platforms (generally driver restrictions), only the specified kernel can be used, but this kernel version is usually too low, in order to better use the application software, we can only include some later versions of packages and modify these dependencies. Unfortunately, the maintainers of such dependency are generally not reliable enough, so problems often occur.
Cubian is such a system. Although it is based on debian wheezy, some packages are from debian jessie, and udev version is even lower than official version 204 of wheezy, which uses version 175. The 215 version mentioned above is the debian jessie version.
I tried to use dpkg -- configure-a to fix it based on my previous experience on the ARM platform "install full-featured Ubuntu record on the Moto Atrix4G mobile phone", but it was a shameful failure, report a bunch of xorg stuff dependent on udev.
So I ran to ask if Ling Hu had any way to downgrade. I searched his suggestion. However, because of the dependency, the apt-get installation method with the specified version cannot be used.
Finally, it can only be handled manually:
Use dpkg-r to delete all unimportant dependency packages. For example, if I delete all xorg packages, they are not required for servers.
Run apt-get autoremove to check whether there are other dependencies. You can delete them with dpkg-r if it is not important.
If there are many (difficult to delete) packages that are important or dependent on it, go to the debian official website to search for an earlier version (use dpkg-l | grep to check the current version number) and download it to install it with dpkg-I.
After so many packages, we finally solved the dependency corruption problem. apt-get-f install was fixed successfully.
Then I checked the pptpd package version in apt ...... The version 1.4.0-5 is used by debian jessie, and none of the other versions are specified, so you have to manually download a version 1.3.4-5.2 on the official website, after manually processing the dependency problem, you can install pptpd ......