Ubuntu-samba server build tutorial, ubuntu-samba build

Source: Internet
Author: User

Ubuntu-samba server build tutorial, ubuntu-samba build

Overview:

The samba server is used for file sharing channels in windows and Linux! Compared to using third-party tools to access files under Liunx, setting up a samba server can directly manage a disk under a windows system, for developers who need to compile in LINUX, this saves a lot of trouble! The development of your own code can be directly saved in LIUNX and modified and saved using the editing tool! Next, I will introduce how to solve the problems we encountered in building our own samba server. The existing network resources do not need to start many operations from scratch, most of our learning processes are done on the shoulders of giants. I just completed the operation based on my blog. I would like to thank Yan 13th (Song Ge) for sharing it. Of course, you need to check the problems encountered in this process. For other instructions, refer to the blog https://blog.csdn.net/flyingcys/article/details/50673167.

1) sudoapt-getupdate:

Error message: E: cocould not get lock/var/lib/dpkg/lock-open

Error description:

This problem may occur because another program is running and the resource is locked and unavailable. The reason for the resource being locked may be that the last installation was not completed properly, resulting in this situation. This should be related to the fact that I directly turn off the terminal when installing an update.

Solution: (unlock related resource locks)

Sudo rm/var/cache/apt/archives/lock sudo rm/var/lib/dpkg/lock

2) sudoapt-getupdate failed to get the latest package. 2:

Error message:

[Html] view plaincopy

Readingpackagelists... Done

E: ProblemexecutingscriptsAPT: Update: Post-Invoke-Success

'If/usr/bin/test-w/var/cache/app-info-a-e/usr/bin/appstreamcli;

Thenappstreamclirefresh>/dev/null;

Fi'

E: Sub-processreturnedanerrorcode

When I solve a problem, I also operated according to the solution provided by my online friends. The specific cause is that the command meaning of the related operation is also related to the processes in the system. The majority of netizens are welcome to express their opinions on the reasons for this problem and why it is necessary to solve it. The following command completes the process and downloads the background at the specified address. Then, you can view the downloaded information.

Solution:

Sudo pkill-KILL appstreamcli // end related process wget-P/tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.debsudo dpkg-I/tmp/appstream_0.9.4-1ubuntu1_amd64.deb/tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb

3) Notes for setting up a samba server:

The smb. conf file under samba must use the sudo command to save the file. In the blog, you can use the gedit tool to perform operations. Of course, the premise is also in sudo. Set sudo adduser msamba user names and passwords

Operations

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.